-
-
Save dheaney/3088a9875889f97f967f9dc5ffdbe97d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from Tkinter import * | |
# http://effbot.org/tkinterbook/ | |
#root = Tk() | |
#photo = PhotoImage(file="Desktop/sphx_glr_simple_plot_001.png") | |
#w = Label(root, image=photo) | |
#w.photo = photo | |
#w.pack() | |
#root.mainloop() | |
from Tkinter import * | |
master = Tk() | |
#Label(master, text="one").grid(row=0, column=0) | |
#Frame(master, text="hey").grid(row=0,column=1) | |
# separator.pack(fill=X, padx=5, pady=5) | |
#two = Label(master, text="two").grid(row=0,column=2) | |
#e1 = Entry(master) | |
#e2 = Entry(master) | |
#e3 = Entry(master) | |
#e1.grid(row=0, column=0) | |
#e3.grid(row=0, column=1) | |
#e2.grid(row=0, column=2) | |
def _p(arg): | |
print arg | |
scale_1 = Scale(master, from_ = 0, to = 100, orient=HORIZONTAL, command=_p) | |
scale_2 = Scale(master, from_ = 0, to = 100, orient=HORIZONTAL, command=_p) | |
scale_3 = Scale(master, from_ = 0, to = 100, orient=HORIZONTAL, command=_p) | |
scale_4 = Scale(master, from_ = 0, to = 100, orient=HORIZONTAL, command=_p) | |
scale_5 = Scale(master, from_ = 0, to = 100, orient=HORIZONTAL, command=_p) | |
scale_6 = Scale(master, from_ = 0, to = 100, orient=HORIZONTAL, command=_p) | |
scale_7 = Scale(master, from_ = 0, to = 100, orient=HORIZONTAL, command=_p) | |
value_1 = Entry(master) | |
value_2 = Entry(master) | |
value_3 = Entry(master) | |
value_4 = Entry(master) | |
value_5 = Entry(master) | |
value_6 = Entry(master) | |
value_7 = Entry(master) | |
scale_1.grid(row=0, column=0) | |
scale_2.grid(row=1, column=0) | |
scale_3.grid(row=2, column=0) | |
scale_4.grid(row=3, column=0) | |
scale_5.grid(row=4, column=0) | |
scale_6.grid(row=5, column=0) | |
scale_7.grid(row=6, column=0) | |
value_1.grid(row=0, column=1) | |
value_2.grid(row=1, column=1) | |
value_3.grid(row=2, column=1) | |
value_4.grid(row=3, column=1) | |
value_5.grid(row=4, column=1) | |
value_6.grid(row=5, column=1) | |
value_7.grid(row=6, column=1) | |
photo = PhotoImage(file="Desktop/sphx_glr_simple_plot_001.png") | |
w = Label(master, image=photo) | |
w.photo = photo | |
w.pack() | |
mainloop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment