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

# HG changeset patch
# User Ilia
# Date 1291541731 -10800
# Node ID 313db779039782aff334f587a64e491e4e4a8642
# Parent a294fd0465d0672ab199d6b0ce464e057216278a
checkbox correction

diff -r a294fd0465d0 -r 313db7790397 Interface.py
--- a/Interface.py Sun Dec 05 02:57:00 2010 +0300
+++ b/Interface.py Sun Dec 05 12:35:31 2010 +0300
@@ -310,36 +310,38 @@
info_frame.pack(side="top")


+check_box = [0, 0, 0, 0, 0, 0, 0, 0, 0]
+
condition = Label(automata_frame, text= "Condition of conversion")
condition.pack(side="top", fill="x")
condition_frame=Frame(automata_frame, background="white")
Label(condition_frame, text="0: ").grid(row=0, column=0)
-check_box_0 = Checkbutton(condition_frame)
-check_box_0.grid(row=0, column=1)
+c_box_0 = Checkbutton(condition_frame, variable = check_box[0], onvalue = 1, offvalue = 0)
+c_box_0.grid(row=0, column=1)
Label(condition_frame, text="1: ").grid(row=0, column=2)
-check_box_1 = Checkbutton(condition_frame)
-check_box_1.grid(row=0, column=3)
+c_box_1 = Checkbutton(condition_frame, variable = check_box[1], onvalue = 1, offvalue = 0)
+c_box_1.grid(row=0, column=3)
Label(condition_frame, text="2: ").grid(row=0, column=4)
-check_box_2 = Checkbutton(condition_frame)
-check_box_2.grid(row=0, column=5)
+c_box_2 = Checkbutton(condition_frame, variable = check_box[2], onvalue = 1, offvalue = 0)
+c_box_2.grid(row=0, column=5)
Label(condition_frame, text="3: ").grid(row=1, column=0)
-check_box_0 = Checkbutton(condition_frame)
-check_box_0.grid(row=1, column=1)
+c_box_3 = Checkbutton(condition_frame, variable = check_box[3], onvalue = 1, offvalue = 0)
+c_box_3.grid(row=1, column=1)
Label(condition_frame, text="4: ").grid(row=1, column=2)
-check_box_1 = Checkbutton(condition_frame)
-check_box_1.grid(row=1, column=3)
+c_box_4 = Checkbutton(condition_frame, variable = check_box[4], onvalue = 1, offvalue = 0)
+c_box_4.grid(row=1, column=3)
Label(condition_frame, text="5: ").grid(row=1, column=4)
-check_box_2 = Checkbutton(condition_frame)
-check_box_2.grid(row=1, column=5)
+c_box_5 = Checkbutton(condition_frame, variable = check_box[5], onvalue = 1, offvalue = 0)
+c_box_5.grid(row=1, column=5)
Label(condition_frame, text="6: ").grid(row=2, column=0)
-check_box_0 = Checkbutton(condition_frame)
-check_box_0.grid(row=2, column=1)
+c_box_6 = Checkbutton(condition_frame, variable = check_box[6], onvalue = 1, offvalue = 0)
+c_box_6.grid(row=2, column=1)
Label(condition_frame, text="7: ").grid(row=2, column=2)
-check_box_1 = Checkbutton(condition_frame)
-check_box_1.grid(row=2, column=3)
+c_box_7 = Checkbutton(condition_frame, variable = check_box[7], onvalue = 1, offvalue = 0)
+c_box_7.grid(row=2, column=3)
Label(condition_frame, text="8: ").grid(row=2, column=4)
-check_box_2 = Checkbutton(condition_frame)
-check_box_2.grid(row=2, column=5)
+c_box_8 = Checkbutton(condition_frame, variable = check_box[8], onvalue = 1, offvalue = 0)
+c_box_8.grid(row=2, column=5)
condition_frame.pack(side="top")