Документ взят из кэша поисковой машины. Адрес оригинального документа : http://kodomo.fbb.msu.ru/hg/snake/diff/dcd9d23e77d7/main.py
Дата изменения: Unknown
Дата индексирования: Fri Feb 28 13:02:14 2014
Кодировка:
snake: main.py diff

snake

diff main.py @ 95:dcd9d23e77d7

ui update: buttons do not change size when window resizes
author Danya Alexeyevsky <me.dendik@gmail.com>
date Mon, 20 Dec 2010 02:23:01 +0300
parents c0d500d241ff
children 3619305694ad
line diff
     1.1 --- a/main.py	Mon Dec 20 02:17:42 2010 +0300
     1.2 +++ b/main.py	Mon Dec 20 02:23:01 2010 +0300
     1.3 @@ -20,17 +20,17 @@
     1.4          return
     1.5      def buttons_pack(self, frame):
     1.6          load_1 = tk.Button(frame, text="Load 1", command=lambda: self.load(1))
     1.7 -        load_1.pack(side="left", fill="both", expand = "yes")
     1.8 +        load_1.pack(side="left", fill="both", expand = "no")
     1.9          load_2 = tk.Button(frame, text="Load 2", command=lambda: self.load(2))
    1.10 -        load_2.pack(side="left", fill="both", expand = "yes")
    1.11 +        load_2.pack(side="left", fill="both", expand = "no")
    1.12          run_b = tk.Button(frame, text="Run", command=lambda: self.run())
    1.13 -        run_b.pack(side="left", fill="both", expand = "yes")
    1.14 +        run_b.pack(side="left", fill="both", expand = "no")
    1.15          load_3 = tk.Button(frame, text="Load 3", command=lambda: self.load(3))
    1.16 -        load_3.pack(side="right", fill="both", expand = "yes")
    1.17 +        load_3.pack(side="right", fill="both", expand = "no")
    1.18          load_4 = tk.Button(frame, text="Load 4", command=lambda: self.load(4))
    1.19 -        load_4.pack(side="right", fill="both", expand = "yes")
    1.20 +        load_4.pack(side="right", fill="both", expand = "no")
    1.21          step_b = tk.Button(frame, text="Step", command=lambda: self.step())
    1.22 -        step_b.pack(side="right", fill="both", expand = "yes")
    1.23 +        step_b.pack(side="right", fill="both", expand = "no")
    1.24          return
    1.25      
    1.26      def load (self, snake_number):