Commit 1f9dab0f authored by Matheus Müller's avatar Matheus Müller

Versao para commitdiff debug

parent 369633e2
......@@ -159,7 +159,7 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L
# Declaration of interpolation and distribution method variables
methodvar = tk.StringVar()
methodvar.set('reta')
methodvar.set('step')
##############################################################################
......@@ -261,7 +261,6 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L
# Distribution
def changestate():
if str(distvar.get()) == 'layer':
BLayer['state']='normal'
BUpdateD['state']='disabled'
RS['state']='disabled'
......@@ -277,7 +276,7 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L
for n in arange(0, len(Ebuttons)):
Ebuttons[n]['state'] = 'disabled'
elif str(distvar.get()) == 'drawing':
def changestate2():
BLayer['state']='disabled'
BUpdateD['state']='normal'
RS['state']='normal'
......@@ -308,16 +307,15 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L
RL = tk.Radiobutton(Labeldist, text="Lines", variable=methodvar, value='reta')
RL.pack(side='right')
# Distribution methods
RLay = tk.Radiobutton(Frames[7], text="Layers", command=lambda i=int(Econtrol) :changestate(), variable=distvar, value='layer')
RLay = tk.Radiobutton(Frames[7], text="Layers", command=lambda i=int(Econtrol) :changestate(), variable=distvar, value=0)
RLay.pack(side='left')
RDra = tk.Radiobutton(Frames[7], text="Drawing", command=lambda i=int(Econtrol) :changestate(), variable=distvar, value='drawing')
RDra = tk.Radiobutton(Frames[7], text="Drawing", command=lambda i=int(Econtrol) :changestate2(), variable=distvar, value=1)
RDra.pack(side='right')
##############################################################################
# Experiment variations
def changemode():
if str(modevar.get()) == 'IONS':
for n in range(len(Ebuttons)):
Ebuttons[n]['state']='normal'
but['state'] = 'normal'
......@@ -326,7 +324,7 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L
RLay['state'] = 'normal'
Labentrys[12]['state'] = 'disabled'
elif str(modevar.get()) == 'RRNA':
def changemode2():
RDra.invoke()
elem_select(0,Ebuttons)
but['state'] = 'disabled'
......@@ -336,15 +334,15 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L
for n in arange(1, len(Ebuttons)):
Ebuttons[n]['state'] = 'disabled'
Rions = tk.Radiobutton(Labelframe, text="Ion Scattering", command=lambda i=i :changemode(), variable=modevar, value='IONS', width=18)
Rions = tk.Radiobutton(Labelframe, text="Ion Scattering", variable=modevar, value=0, width=18, command=lambda i=i :changemode())
Rions.pack()
Rrrna = tk.Radiobutton(Labelframe, text="Resonant RNA", command=lambda i=i :changemode(), variable=modevar, value='RRNA', width=18)
Rrrna = tk.Radiobutton(Labelframe, text="Resonant RNA", variable=modevar, value=1, width=18, command=lambda i=i :changemode2())
Rrrna.pack()
Rions.invoke()
##############################################################################
# Init
Rions.invoke()
RDra.invoke()
RS.select()
Ebuttons[0].invoke()
......
No preview for this file type
0 0
1.9523573201 0.00520408163265
2.84863523573 0.842704081633
7.2129032258 0.932270408162
9.37667493796 0.960612244896
10.0 0
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896
0.960612244896