Commit 08454278 authored by Matheus Müller's avatar Matheus Müller
Browse files

Ajustes

parent eb3daf3b
0 0
1.24565756824 0.206632653061
5.0 0
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.206632653061
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0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.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
...@@ -15,7 +15,7 @@ Edict = dict() ...@@ -15,7 +15,7 @@ Edict = dict()
Ebuttons = list() Ebuttons = list()
Labentrys = list() Labentrys = list()
Frames = list() Frames = list()
i=0 i = 0
Econtrol = 0 Econtrol = 0
############################################################################## ##############################################################################
...@@ -58,7 +58,7 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L ...@@ -58,7 +58,7 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L
# Element addition # Element addition
def create(): def create():
global i, Edict, Ebuttons global i, Edict, Ebuttons
Edict[i]=dict(name="New",symbol="Hf",mass=178.,Z=72,dist=zeros(int(10./float(OFlabentries[17].get()))),LineShape=200.,profundidademax=10.) Edict[i]=dict(name="New Element",symbol="Hf",mass=178.,Z=72,dist=zeros(int(10./float(OFlabentries[17].get()))),LineShape=200.,profundidademax=10.)
Ebuttons.insert(i, tk.Button(Eframe, text=i, width=1, height=1, command = lambda i=i : elem_select(i,Ebuttons)) ) Ebuttons.insert(i, tk.Button(Eframe, text=i, width=1, height=1, command = lambda i=i : elem_select(i,Ebuttons)) )
Ebuttons[i].grid(column = ((len(Ebuttons)-1)%13), row = int(math.floor((len(Ebuttons)-1)/13))) Ebuttons[i].grid(column = ((len(Ebuttons)-1)%13), row = int(math.floor((len(Ebuttons)-1)/13)))
i = i+1 i = i+1
...@@ -141,6 +141,7 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L ...@@ -141,6 +141,7 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L
# 3 // 9 = Symbol # 3 // 9 = Symbol
# 4 // 10 = Line shape # 4 // 10 = Line shape
# 5 // 11 = Max Depht # 5 // 11 = Max Depht
## 13 // 12 = Resonance energy (For RNA only)
Labentrys.insert(0, tk.Label(Frames[3], width=23, pady=2, text='%s' %Edict[int(Econtrol)]['name']) ) Labentrys.insert(0, tk.Label(Frames[3], width=23, pady=2, text='%s' %Edict[int(Econtrol)]['name']) )
Labentrys.insert(1, tk.Label(Frames[3], width=23, pady=2, text='Mass - %f' %Edict[int(Econtrol)]['mass']) ) Labentrys.insert(1, tk.Label(Frames[3], width=23, pady=2, text='Mass - %f' %Edict[int(Econtrol)]['mass']) )
Labentrys.insert(2, tk.Label(Frames[3], width=23, pady=2, text='Z - %f' %Edict[int(Econtrol)]['Z']) ) Labentrys.insert(2, tk.Label(Frames[3], width=23, pady=2, text='Z - %f' %Edict[int(Econtrol)]['Z']) )
...@@ -148,11 +149,12 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L ...@@ -148,11 +149,12 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L
Labentrys.insert(4, tk.Label(Frames[3], width=23, pady=2, text='Line Shape α - %f' %Edict[int(Econtrol)]['LineShape']) ) Labentrys.insert(4, tk.Label(Frames[3], width=23, pady=2, text='Line Shape α - %f' %Edict[int(Econtrol)]['LineShape']) )
Labentrys.insert(5, tk.Label(Frames[3], width=23, pady=2, text='Max Depht - %f' %Edict[int(Econtrol)]['profundidademax']) ) Labentrys.insert(5, tk.Label(Frames[3], width=23, pady=2, text='Max Depht - %f' %Edict[int(Econtrol)]['profundidademax']) )
for i in range(6): for i in arange(6, 13):
Labentrys[i].pack()
for i in arange(6, 12):
Labentrys.insert(i, tk.Entry(Frames[4], width=17) ) Labentrys.insert(i, tk.Entry(Frames[4], width=17) )
Labentrys.insert(13, tk.Label(Frames[3], width=23, pady=2, text='Resonance energy') )
for i in range(14):
Labentrys[i].pack() Labentrys[i].pack()
# Declaration of interpolation and distribution method variables # Declaration of interpolation and distribution method variables
...@@ -322,6 +324,7 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L ...@@ -322,6 +324,7 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L
butrmv['state'] = 'normal' butrmv['state'] = 'normal'
butPTE['state'] = 'normal' butPTE['state'] = 'normal'
RLay['state'] = 'normal' RLay['state'] = 'normal'
Labentrys[12]['state'] = 'disabled'
elif str(modevar.get()) == 'RRNA': elif str(modevar.get()) == 'RRNA':
RDra.invoke() RDra.invoke()
...@@ -329,6 +332,7 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L ...@@ -329,6 +332,7 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L
but['state'] = 'disabled' but['state'] = 'disabled'
butrmv['state'] = 'disabled' butrmv['state'] = 'disabled'
RLay['state'] = 'disabled' RLay['state'] = 'disabled'
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'
...@@ -336,7 +340,7 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L ...@@ -336,7 +340,7 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L
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", command=lambda i=i :changemode(), variable=modevar, value='RRNA', width=18)
Rrrna.pack() Rrrna.pack()
Rions.select() Rions.invoke()
############################################################################## ##############################################################################
# Init # Init
......
No preview for this file type
0 0 0 0
1.22580645161 0.308673469388 1.9523573201 0.00520408163265
1.38461538462 0.188775510204 3.10669975186 0.345255102041
5.20794044664 0.0691326530602
10.0 0 10.0 0
This diff is collapsed.
0 0
1.19851116625 0.163265306122
2.27047146402 0.00255102040816
5.0 0
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122
0.163265306122