on the way
This commit is contained in:
parent
81f7d21660
commit
1e7a0f3d85
13
JFSphoto.py
13
JFSphoto.py
@ -565,11 +565,18 @@ class Jfsphoto (object):
|
|||||||
self.canvas.draw()
|
self.canvas.draw()
|
||||||
|
|
||||||
def do_methods(self,panel):
|
def do_methods(self,panel):
|
||||||
print(panel.SHvalue.get())
|
|
||||||
|
def cb(event):
|
||||||
|
print(tree.selection())
|
||||||
|
# #panel.bcollect.invoke()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
win = tk.Toplevel()
|
win = tk.Toplevel()
|
||||||
tree = ttk.Treeview(win)
|
tree = ttk.Treeview(win)
|
||||||
|
|
||||||
|
tree.tag_bind('cb','<<TreeviewSelect>>',cb)
|
||||||
tree.grid(column=0,row=0)
|
tree.grid(column=0,row=0)
|
||||||
tree["columns"]=('id','nm','konz','absorbanz','interval','last')
|
tree["columns"]=('id','nm','konz','absorbanz','interval','last')
|
||||||
tree.column("#0",width=100,minwidth=100,stretch=tk.NO)
|
tree.column("#0",width=100,minwidth=100,stretch=tk.NO)
|
||||||
@ -604,7 +611,7 @@ class Jfsphoto (object):
|
|||||||
for a in self.methods:
|
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))
|
tree.insert("",'end',a.name,text=a.name,values=(a.id,a.nm,a.units,a.absorbanz,a.step,a.final))
|
||||||
for b in a.messures:
|
for b in a.messures:
|
||||||
tree.insert(a.name,'end',b.name,text=b.name,values=(b.id,'',b.conc,b.absorbanz))
|
tree.insert(a.name,'end',b.name,text=b.name,values=(b.id,'',b.conc,b.absorbanz),tags=('cb'))
|
||||||
|
|
||||||
def save_tree():
|
def save_tree():
|
||||||
for child in tree.get_children():
|
for child in tree.get_children():
|
||||||
@ -616,7 +623,7 @@ class Jfsphoto (object):
|
|||||||
for p in self.methods:
|
for p in self.methods:
|
||||||
if p.get_name()== name:
|
if p.get_name()== name:
|
||||||
p.update(s)
|
p.update(s)
|
||||||
print(f'{name} >> {s}')
|
#print(f'{name} >> {s}')
|
||||||
self.conf_write()
|
self.conf_write()
|
||||||
|
|
||||||
def add_method():
|
def add_method():
|
||||||
|
|||||||
@ -6,5 +6,4 @@ nm_step = 0.13279
|
|||||||
[methods]
|
[methods]
|
||||||
crystal = 1,530,mymol,0,5,20|1,4.0,1.23|2,8.0,2.4|3,12.0,3.65|4,16.0,4.8|5,20.0,6.05
|
crystal = 1,530,mymol,0,5,20|1,4.0,1.23|2,8.0,2.4|3,12.0,3.65|4,16.0,4.8|5,20.0,6.05
|
||||||
eisen = 2,405,mymol,0.0,3,60|1,20.0,0.0|2,40.0,0.0|3,60.0,0.0
|
eisen = 2,405,mymol,0.0,3,60|1,20.0,0.0|2,40.0,0.0|3,60.0,0.0
|
||||||
ursi = 3,555,Mol,0.0,2,20
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user