Commit a0915a37 authored by Matheus Müller's avatar Matheus Müller

Adicionado label com instrucoes e hotkeys p desenho de perfil

parent 742b170a
...@@ -73,7 +73,7 @@ def ewin_build(window, OFlabentries, mainwindow, calcbutton, distvar, modevar, L ...@@ -73,7 +73,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 Element",symbol="Hf",mass=178.,Z=72,dist=profile(200,0.01),LineShape=200.,profundidademax=2.) Edict[i]=dict(name="New Element",symbol="Hf",mass=178.,Z=72,dist=profile(200,float(OFlabentries[17].get())),LineShape=200.,profundidademax=2.)
Ebuttons.insert(i, tk.Button(Eframe, text=i, width=1, height=1, command = lambda i=i : elem_select(i,Ebuttons,grafico,f,a,t)) ) Ebuttons.insert(i, tk.Button(Eframe, text=i, width=1, height=1, command = lambda i=i : elem_select(i,Ebuttons,grafico,f,a,t)) )
Ebuttons[i].grid(row = ((len(Ebuttons)-1)%6), column = int(math.floor((len(Ebuttons)-1)/6))) Ebuttons[i].grid(row = ((len(Ebuttons)-1)%6), column = int(math.floor((len(Ebuttons)-1)/6)))
i = i+1 i = i+1
......
No preview for this file type
...@@ -78,7 +78,7 @@ f = plt.figure() ...@@ -78,7 +78,7 @@ f = plt.figure()
a = f.add_subplot(111) a = f.add_subplot(111)
embedded_frame = tk.Frame(Dframe) embedded_frame = tk.Frame(Dframe)
embedded_frame.pack(side='bottom',fill='both', expand=1) embedded_frame.pack(side='top',fill='both', expand=1)
dataPlot = FigureCanvasTkAgg(f, master=embedded_frame) dataPlot = FigureCanvasTkAgg(f, master=embedded_frame)
dataPlot.get_tk_widget().pack(side='top', fill='both', expand=1) dataPlot.get_tk_widget().pack(side='top', fill='both', expand=1)
...@@ -186,6 +186,9 @@ for n in arange(21,24): ...@@ -186,6 +186,9 @@ for n in arange(21,24):
for n in range(26): for n in range(26):
OFlabentries[n].pack() OFlabentries[n].pack()
OFlabentries.insert(26, tk.Label(Dframe, pady=1, text='Left-Click:Draw Middle-Click:Scale Right-Click:Shift Hotkeys: Normalize:Alt+N Clear:Alt+C' ))
OFlabentries[26].pack(side='bottom',fill='x', expand=1)
############################################################################## ##############################################################################
# Initial values # Initial values
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment