on the way
This commit is contained in:
parent
eaa336ab6f
commit
b3d547134c
20
JFSphoto.py
20
JFSphoto.py
@ -601,6 +601,7 @@ class Jfsphoto (object):
|
||||
return x
|
||||
|
||||
|
||||
|
||||
font = {'family': 'serif',
|
||||
'color': 'darkred',
|
||||
'weight': 'normal',
|
||||
@ -647,6 +648,7 @@ class Jfsphoto (object):
|
||||
y = []
|
||||
x = []
|
||||
name = tree.selection()
|
||||
l6.config(text=name[0])
|
||||
for child in tree.get_children(name):
|
||||
x.append(float(tree.item(child)["values"][2]))
|
||||
y.append(float(tree.item(child)["values"][3]))
|
||||
@ -699,6 +701,7 @@ class Jfsphoto (object):
|
||||
e7 = tk.StringVar()
|
||||
e7.set('0.0')
|
||||
|
||||
|
||||
def load_tree():
|
||||
for a in self.methods:
|
||||
tree.insert("",'end',a.name,text=a.name,values=(a.id,a.nm,a.units,a.absorbanz,a.step,a.final),tags=('cb2'))
|
||||
@ -738,6 +741,17 @@ class Jfsphoto (object):
|
||||
if p.name == name:
|
||||
self.methods.remove(p)
|
||||
|
||||
def do_zero_messurement():
|
||||
for child in tree.get_children(l6['text']):
|
||||
sh =int(tree.item(child)["values"][4])
|
||||
icg =int(tree.item(child)["values"][5])
|
||||
break
|
||||
print(sh,icg)
|
||||
panel.SHvalue.set(sh)
|
||||
panel.ICGvalue.set(icg)
|
||||
#print(panel.SHvalue.get(), panel.ICGvalue.get())
|
||||
#print(int(tree.item(l6['text'])["values"][3]))
|
||||
print(l6['text'])
|
||||
|
||||
#### Tree
|
||||
lf1 = tk.LabelFrame(win,text='Edit the method')
|
||||
@ -783,6 +797,12 @@ class Jfsphoto (object):
|
||||
ax1.plot(t, s, linewidth=0.6)
|
||||
canvas.draw()
|
||||
#### do messurements
|
||||
lf3 = tk.LabelFrame(win,text='Do messurements')
|
||||
lf3.grid(column=1,row=1,sticky='nw')
|
||||
l6 = tk.Label(lf3,text='Select Messurement')
|
||||
l6.grid(column=0,row=0,sticky='w')
|
||||
lmb1=tk.Button(lf3,text=' Zero Messurements',command=do_zero_messurement)
|
||||
lmb1.grid(column=0,row=1,sticky='w')
|
||||
#### go on
|
||||
load_tree()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user