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,37 +261,36 @@ 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'
RL['state']='disabled'
OFlabentries[9]['state']='disabled'
OFlabentries[10]['state']='disabled'
for i in arange(6, 12):
Labentrys[i]['state']='disabled'
but['state']='disabled'
butrmv['state']='disabled'
butPTE['state']='disabled'
BUpdate['state']='disabled'
for n in arange(0, len(Ebuttons)):
Ebuttons[n]['state'] = 'disabled'
elif str(distvar.get()) == 'drawing':
BLayer['state']='disabled'
BUpdateD['state']='normal'
RS['state']='normal'
RL['state']='normal'
OFlabentries[9]['state']='normal'
OFlabentries[10]['state']='normal'
for i in arange(6, 12):
Labentrys[i]['state']='normal'
but['state']='normal'
butrmv['state']='normal'
butPTE['state']='normal'
BUpdate['state']='normal'
for n in arange(0, len(Ebuttons)):
Ebuttons[n]['state'] = 'normal'
BLayer['state']='normal'
BUpdateD['state']='disabled'
RS['state']='disabled'
RL['state']='disabled'
OFlabentries[9]['state']='disabled'
OFlabentries[10]['state']='disabled'
for i in arange(6, 12):
Labentrys[i]['state']='disabled'
but['state']='disabled'
butrmv['state']='disabled'
butPTE['state']='disabled'
BUpdate['state']='disabled'
for n in arange(0, len(Ebuttons)):
Ebuttons[n]['state'] = 'disabled'
def changestate2():
BLayer['state']='disabled'
BUpdateD['state']='normal'
RS['state']='normal'
RL['state']='normal'
OFlabentries[9]['state']='normal'
OFlabentries[10]['state']='normal'
for i in arange(6, 12):
Labentrys[i]['state']='normal'
but['state']='normal'
butrmv['state']='normal'
butPTE['state']='normal'
BUpdate['state']='normal'
for n in arange(0, len(Ebuttons)):
Ebuttons[n]['state'] = 'normal'
def call_layers():
layers()
......@@ -308,43 +307,42 @@ 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'
butrmv['state'] = 'normal'
butPTE['state'] = 'normal'
RLay['state'] = 'normal'
Labentrys[12]['state'] = 'disabled'
elif str(modevar.get()) == 'RRNA':
RDra.invoke()
elem_select(0,Ebuttons)
but['state'] = 'disabled'
butrmv['state'] = 'disabled'
RLay['state'] = 'disabled'
Labentrys[12]['state'] = 'normal'
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)
for n in range(len(Ebuttons)):
Ebuttons[n]['state']='normal'
but['state'] = 'normal'
butrmv['state'] = 'normal'
butPTE['state'] = 'normal'
RLay['state'] = 'normal'
Labentrys[12]['state'] = 'disabled'
def changemode2():
RDra.invoke()
elem_select(0,Ebuttons)
but['state'] = 'disabled'
butrmv['state'] = 'disabled'
RLay['state'] = 'disabled'
Labentrys[12]['state'] = 'normal'
for n in arange(1, len(Ebuttons)):
Ebuttons[n]['state'] = 'disabled'
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