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 ...@@ -159,7 +159,7 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L
# Declaration of interpolation and distribution method variables # Declaration of interpolation and distribution method variables
methodvar = tk.StringVar() methodvar = tk.StringVar()
methodvar.set('reta') methodvar.set('step')
############################################################################## ##############################################################################
...@@ -261,37 +261,36 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L ...@@ -261,37 +261,36 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L
# Distribution # Distribution
def changestate(): def changestate():
if str(distvar.get()) == 'layer': BLayer['state']='normal'
BLayer['state']='normal' BUpdateD['state']='disabled'
BUpdateD['state']='disabled' RS['state']='disabled'
RS['state']='disabled' RL['state']='disabled'
RL['state']='disabled' OFlabentries[9]['state']='disabled'
OFlabentries[9]['state']='disabled' OFlabentries[10]['state']='disabled'
OFlabentries[10]['state']='disabled' for i in arange(6, 12):
for i in arange(6, 12): Labentrys[i]['state']='disabled'
Labentrys[i]['state']='disabled' but['state']='disabled'
but['state']='disabled' butrmv['state']='disabled'
butrmv['state']='disabled' butPTE['state']='disabled'
butPTE['state']='disabled' BUpdate['state']='disabled'
BUpdate['state']='disabled' for n in arange(0, len(Ebuttons)):
for n in arange(0, len(Ebuttons)): Ebuttons[n]['state'] = 'disabled'
Ebuttons[n]['state'] = 'disabled'
def changestate2():
elif str(distvar.get()) == 'drawing': BLayer['state']='disabled'
BLayer['state']='disabled' BUpdateD['state']='normal'
BUpdateD['state']='normal' RS['state']='normal'
RS['state']='normal' RL['state']='normal'
RL['state']='normal' OFlabentries[9]['state']='normal'
OFlabentries[9]['state']='normal' OFlabentries[10]['state']='normal'
OFlabentries[10]['state']='normal' for i in arange(6, 12):
for i in arange(6, 12): Labentrys[i]['state']='normal'
Labentrys[i]['state']='normal' but['state']='normal'
but['state']='normal' butrmv['state']='normal'
butrmv['state']='normal' butPTE['state']='normal'
butPTE['state']='normal' BUpdate['state']='normal'
BUpdate['state']='normal' for n in arange(0, len(Ebuttons)):
for n in arange(0, len(Ebuttons)): Ebuttons[n]['state'] = 'normal'
Ebuttons[n]['state'] = 'normal'
def call_layers(): def call_layers():
layers() layers()
...@@ -308,43 +307,42 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L ...@@ -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 = tk.Radiobutton(Labeldist, text="Lines", variable=methodvar, value='reta')
RL.pack(side='right') RL.pack(side='right')
# Distribution methods # 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') 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') RDra.pack(side='right')
############################################################################## ##############################################################################
# Experiment variations # Experiment variations
def changemode(): def changemode():
if str(modevar.get()) == 'IONS': for n in range(len(Ebuttons)):
for n in range(len(Ebuttons)): Ebuttons[n]['state']='normal'
Ebuttons[n]['state']='normal' but['state'] = 'normal'
but['state'] = 'normal' butrmv['state'] = 'normal'
butrmv['state'] = 'normal' butPTE['state'] = 'normal'
butPTE['state'] = 'normal' RLay['state'] = 'normal'
RLay['state'] = 'normal' Labentrys[12]['state'] = 'disabled'
Labentrys[12]['state'] = 'disabled'
def changemode2():
elif str(modevar.get()) == 'RRNA': RDra.invoke()
RDra.invoke() elem_select(0,Ebuttons)
elem_select(0,Ebuttons) but['state'] = 'disabled'
but['state'] = 'disabled' butrmv['state'] = 'disabled'
butrmv['state'] = 'disabled' RLay['state'] = 'disabled'
RLay['state'] = 'disabled' Labentrys[12]['state'] = 'normal'
Labentrys[12]['state'] = 'normal' for n in arange(1, len(Ebuttons)):
for n in arange(1, len(Ebuttons)): Ebuttons[n]['state'] = 'disabled'
Ebuttons[n]['state'] = 'disabled'
Rions = tk.Radiobutton(Labelframe, text="Ion Scattering", variable=modevar, value=0, width=18, command=lambda i=i :changemode())
Rions = tk.Radiobutton(Labelframe, text="Ion Scattering", command=lambda i=i :changemode(), variable=modevar, value='IONS', width=18)
Rions.pack() 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() Rrrna.pack()
Rions.invoke()
############################################################################## ##############################################################################
# Init # Init
Rions.invoke()
RDra.invoke() RDra.invoke()
RS.select() RS.select()
Ebuttons[0].invoke() Ebuttons[0].invoke()
......
No preview for this file type
0 0 0 0
1.9523573201 0.00520408163265 9.37667493796 0.960612244896
2.84863523573 0.842704081633
7.2129032258 0.932270408162
10.0 0 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