Документ взят из кэша поисковой машины. Адрес оригинального документа : http://kodomo.fbb.msu.ru/hg/cca/diff/313db7790397/Interface.py
Дата изменения: Unknown
Дата индексирования: Sun Feb 3 10:49:02 2013
Кодировка:
cca: Interface.py diff

cca

diff Interface.py @ 33:313db7790397

checkbox correction
author Ilia
date Sun, 05 Dec 2010 12:35:31 +0300
parents a294fd0465d0
children 992d0179053e
line diff
     1.1 --- a/Interface.py	Sun Dec 05 02:57:00 2010 +0300
     1.2 +++ b/Interface.py	Sun Dec 05 12:35:31 2010 +0300
     1.3 @@ -310,36 +310,38 @@
     1.4  info_frame.pack(side="top")
     1.5  
     1.6  
     1.7 +check_box = [0, 0, 0, 0, 0, 0, 0, 0, 0]
     1.8 +
     1.9  condition = Label(automata_frame, text= "Condition of conversion")
    1.10  condition.pack(side="top", fill="x")
    1.11  condition_frame=Frame(automata_frame, background="white")
    1.12  Label(condition_frame, text="0: ").grid(row=0, column=0)
    1.13 -check_box_0 = Checkbutton(condition_frame)
    1.14 -check_box_0.grid(row=0, column=1)
    1.15 +c_box_0 = Checkbutton(condition_frame, variable = check_box[0], onvalue = 1, offvalue = 0)
    1.16 +c_box_0.grid(row=0, column=1)
    1.17  Label(condition_frame, text="1: ").grid(row=0, column=2)
    1.18 -check_box_1 = Checkbutton(condition_frame)
    1.19 -check_box_1.grid(row=0, column=3)
    1.20 +c_box_1 = Checkbutton(condition_frame, variable = check_box[1], onvalue = 1, offvalue = 0)
    1.21 +c_box_1.grid(row=0, column=3)
    1.22  Label(condition_frame, text="2: ").grid(row=0, column=4)
    1.23 -check_box_2 = Checkbutton(condition_frame)
    1.24 -check_box_2.grid(row=0, column=5)
    1.25 +c_box_2 = Checkbutton(condition_frame, variable = check_box[2], onvalue = 1, offvalue = 0)
    1.26 +c_box_2.grid(row=0, column=5)
    1.27  Label(condition_frame, text="3: ").grid(row=1, column=0)
    1.28 -check_box_0 = Checkbutton(condition_frame)
    1.29 -check_box_0.grid(row=1, column=1)
    1.30 +c_box_3 = Checkbutton(condition_frame, variable = check_box[3], onvalue = 1, offvalue = 0)
    1.31 +c_box_3.grid(row=1, column=1)
    1.32  Label(condition_frame, text="4: ").grid(row=1, column=2)
    1.33 -check_box_1 = Checkbutton(condition_frame)
    1.34 -check_box_1.grid(row=1, column=3)
    1.35 +c_box_4 = Checkbutton(condition_frame, variable = check_box[4], onvalue = 1, offvalue = 0)
    1.36 +c_box_4.grid(row=1, column=3)
    1.37  Label(condition_frame, text="5: ").grid(row=1, column=4)
    1.38 -check_box_2 = Checkbutton(condition_frame)
    1.39 -check_box_2.grid(row=1, column=5)
    1.40 +c_box_5 = Checkbutton(condition_frame, variable = check_box[5], onvalue = 1, offvalue = 0)
    1.41 +c_box_5.grid(row=1, column=5)
    1.42  Label(condition_frame, text="6: ").grid(row=2, column=0)
    1.43 -check_box_0 = Checkbutton(condition_frame)
    1.44 -check_box_0.grid(row=2, column=1)
    1.45 +c_box_6 = Checkbutton(condition_frame, variable = check_box[6], onvalue = 1, offvalue = 0)
    1.46 +c_box_6.grid(row=2, column=1)
    1.47  Label(condition_frame, text="7: ").grid(row=2, column=2)
    1.48 -check_box_1 = Checkbutton(condition_frame)
    1.49 -check_box_1.grid(row=2, column=3)
    1.50 +c_box_7 = Checkbutton(condition_frame, variable = check_box[7], onvalue = 1, offvalue = 0)
    1.51 +c_box_7.grid(row=2, column=3)
    1.52  Label(condition_frame, text="8: ").grid(row=2, column=4)
    1.53 -check_box_2 = Checkbutton(condition_frame)
    1.54 -check_box_2.grid(row=2, column=5)
    1.55 +c_box_8 = Checkbutton(condition_frame, variable = check_box[8], onvalue = 1, offvalue = 0)
    1.56 +c_box_8.grid(row=2, column=5)
    1.57  condition_frame.pack(side="top")
    1.58  
    1.59