Changeset 169:4eec473f445b
Legend:
- Unmodified
- Added
- Removed
-
main.py
r168 r169 €а 35 35 def buttons_pack(self, root):€а 36 36 """Packing the buttons in root frame.€а 37 €а Definition of button functions."""€а €а 37 Definition of button functions.€а €а 38 €а €а 39 'Load' - ask for snake file load€а €а 40 'Run' - runs the game/next round. Next round starts with snakes survived in previous€а €а 41 'Step' - do the next dtep of the game€а €а 42 'End' - manual end of the game€а €а 43 'Restart" - restart the field with snakes of previous round"""€а 38 44 buttons = tk.Frame(root)€а 39 45 load_1 = tk.Button(buttons, text="Load 1", command=lambda: self.load(0))€а
Note: See TracChangeset
for help on using the changeset viewer.