lbl1 = label(root, text="target:").pack() box1 = entry(root).pack() lbl2 = label(root, text="port:").pack() box2 = entry(root).pack() ps_target = #value given box1
i'm trying make value give box1 appear on 'ps_target' variable. how do this? i'm using tkinter module in python 2.7.6.
if need more detail please let me know give as possible.
there 2 problems, first should calling pack separately. instead of
box1 = entry(root).pack()
you should do
box1 = entry(root) box1.pack()
to value box
call get
box1.get()
Comments
Post a Comment