Документ взят из кэша поисковой машины. Адрес оригинального документа : http://kodomo.fbb.msu.ru/hg/snake/rev/4eec473f445b
Дата изменения: Unknown
Дата индексирования: Mon Oct 1 23:38:13 2012
Кодировка:
snake: 4eec473f445b

snake

changeset 169:4eec473f445b

added button work explanation in documentation.
author Alex Martynov
date Thu, 23 Dec 2010 20:37:13 +0300
parents 0f7df983d610
children 163fc2378113
files main.py
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/main.py	Thu Dec 23 20:31:09 2010 +0300
     1.2 +++ b/main.py	Thu Dec 23 20:37:13 2010 +0300
     1.3 @@ -34,7 +34,13 @@
     1.4      
     1.5      def buttons_pack(self, root):
     1.6          """Packing the buttons in root frame.
     1.7 -        Definition of button functions."""
     1.8 +        Definition of button functions.
     1.9 +
    1.10 +        'Load' - ask for snake file load
    1.11 +        'Run' - runs the game/next round. Next round starts with snakes survived in previous
    1.12 +        'Step' - do the next dtep of the game
    1.13 +        'End' - manual end of the game
    1.14 +        'Restart" - restart the field with snakes of previous round"""
    1.15          buttons = tk.Frame(root)
    1.16          load_1 = tk.Button(buttons, text="Load 1", command=lambda: self.load(0))
    1.17          load_1.grid(row=1, column=2, stick="news")