Документ взят из кэша поисковой машины. Адрес оригинального документа : http://kodomo.fbb.msu.ru/hg/cca/raw-rev/3d1a72f49417
Дата изменения: Unknown
Дата индексирования: Tue Oct 2 04:30:38 2012
Кодировка:

# HG changeset patch
# User Ilia
# Date 1291492283 -10800
# Node ID 3d1a72f4941763acd875a02682d2a76ea3e5ef23
# Parent d2705c3ee7a7ac8e5e2c6dec21df27ba9321285d
little corrections

diff -r d2705c3ee7a7 -r 3d1a72f49417 Interface.py
--- a/Interface.py Sat Dec 04 22:42:50 2010 +0300
+++ b/Interface.py Sat Dec 04 22:51:23 2010 +0300
@@ -222,15 +222,15 @@
for state in states:
state_list.insert("end", state)
state_list.pack(side="top", fill="y")
-up = Button(automata_frame, text="Up", state="DISABLED")
+up = Button(automata_frame, text="Up", state="disabled")
up.config(bg="red")
-down = Button(automata_frame, text="Down", state="DISABLED")
+down = Button(automata_frame, text="Down", state="disabled")
down.config(bg="orange")
-to_top = Button(automata_frame, text="To Top", state="DISABLED")
+to_top = Button(automata_frame, text="To Top", state="disabled")
to_top.config(bg="yellow")
-to_bottom = Button(automata_frame, text="To Bottom", state="DISABLED")
+to_bottom = Button(automata_frame, text="To Bottom", state="disabled")
to_bottom.config(bg="green")
-delete = Button(automata_frame, text="Delete", state="DISABLED")
+delete = Button(automata_frame, text="Delete", state="disabled")
delete.config(bg="cyan")
up.pack(side="top", fill="x")
down.pack(side="top", fill="x")
@@ -290,9 +290,9 @@
condition_frame.pack(side="top")


-add_state = Button(automata_frame, text="ADD", state="DISABLED")
+add_state = Button(automata_frame, text="ADD", state="disabled")
add_state.config(bg="blue")
-change_state = Button(automata_frame, text="Change", state="DISABLED")
+change_state = Button(automata_frame, text="Change", state="disabled")
change_state.config(bg="violet")
add_state.pack(side="top", fill="x")
change_state.pack(side="top", fill="x")
@@ -308,7 +308,8 @@
size_window.withdraw()
size_window.protocol("WM_DELETE_WINDOW", handlers.hide_size_window)
Label(size_window, text= "Current size of window:").pack(side="top", fill="x")
-Label(size_window, text= "X x Y").pack(side="top", fill="x")
+size = Label(size_window, text= str(len(automata.field)) + " x " + str(len(automata.field[0])))
+size.pack(side="top", fill="x")
Label(size_window, text= "New size:").pack(side="top", fill="x")
new_size = Frame(size_window)
size_x = Entry(new_size, width=5)