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

# HG changeset patch
# User Alex Martynov
# Date 1293125833 -10800
# Node ID 4eec473f445bae8237026ace3b134142a6a9d946
# Parent 0f7df983d6106f25a7d4bc0b9a0acdb91f1d09a7
added button work explanation in documentation.

diff -r 0f7df983d610 -r 4eec473f445b main.py
--- a/main.py Thu Dec 23 20:31:09 2010 +0300
+++ b/main.py Thu Dec 23 20:37:13 2010 +0300
@@ -34,7 +34,13 @@

def buttons_pack(self, root):
"""Packing the buttons in root frame.
- Definition of button functions."""
+ Definition of button functions.
+
+ 'Load' - ask for snake file load
+ 'Run' - runs the game/next round. Next round starts with snakes survived in previous
+ 'Step' - do the next dtep of the game
+ 'End' - manual end of the game
+ 'Restart" - restart the field with snakes of previous round"""
buttons = tk.Frame(root)
load_1 = tk.Button(buttons, text="Load 1", command=lambda: self.load(0))
load_1.grid(row=1, column=2, stick="news")