on the way
This commit is contained in:
parent
eaa336ab6f
commit
b3d547134c
22
JFSphoto.py
22
JFSphoto.py
@ -600,7 +600,8 @@ class Jfsphoto (object):
|
|||||||
x = 1000
|
x = 1000
|
||||||
return x
|
return x
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
font = {'family': 'serif',
|
font = {'family': 'serif',
|
||||||
'color': 'darkred',
|
'color': 'darkred',
|
||||||
'weight': 'normal',
|
'weight': 'normal',
|
||||||
@ -647,6 +648,7 @@ class Jfsphoto (object):
|
|||||||
y = []
|
y = []
|
||||||
x = []
|
x = []
|
||||||
name = tree.selection()
|
name = tree.selection()
|
||||||
|
l6.config(text=name[0])
|
||||||
for child in tree.get_children(name):
|
for child in tree.get_children(name):
|
||||||
x.append(float(tree.item(child)["values"][2]))
|
x.append(float(tree.item(child)["values"][2]))
|
||||||
y.append(float(tree.item(child)["values"][3]))
|
y.append(float(tree.item(child)["values"][3]))
|
||||||
@ -698,6 +700,7 @@ class Jfsphoto (object):
|
|||||||
e6 = tk.IntVar()
|
e6 = tk.IntVar()
|
||||||
e7 = tk.StringVar()
|
e7 = tk.StringVar()
|
||||||
e7.set('0.0')
|
e7.set('0.0')
|
||||||
|
|
||||||
|
|
||||||
def load_tree():
|
def load_tree():
|
||||||
for a in self.methods:
|
for a in self.methods:
|
||||||
@ -738,6 +741,17 @@ class Jfsphoto (object):
|
|||||||
if p.name == name:
|
if p.name == name:
|
||||||
self.methods.remove(p)
|
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
|
#### Tree
|
||||||
lf1 = tk.LabelFrame(win,text='Edit the method')
|
lf1 = tk.LabelFrame(win,text='Edit the method')
|
||||||
@ -783,6 +797,12 @@ class Jfsphoto (object):
|
|||||||
ax1.plot(t, s, linewidth=0.6)
|
ax1.plot(t, s, linewidth=0.6)
|
||||||
canvas.draw()
|
canvas.draw()
|
||||||
#### do messurements
|
#### 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
|
#### go on
|
||||||
load_tree()
|
load_tree()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user