Документ взят из кэша поисковой машины. Адрес оригинального документа : http://kodomo.cmm.msu.ru/trac/snake/changeset/169
Дата изменения: Unknown
Дата индексирования: Sun Apr 10 17:48:15 2016
Кодировка: IBM-866
Changeset 169:4eec473f445b тАУ Python Battle

Changeset 169:4eec473f445b


Ignore:
Timestamp:
12/23/10 20:37:13 (5 years ago)
Author:
Alex Martynov
Branch:
default
Message:

added button work explanation in documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main.py

    r168 r169 €а
    3535    def buttons_pack(self, root):€а
    3636        """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"""€а
    3844        buttons = tk.Frame(root)€а
    3945        load_1 = tk.Button(buttons, text="Load 1", command=lambda: self.load(0))€а
Note: See TracChangeset for help on using the changeset viewer.