GUI slider control

James Stroud jstroud at ucla.edu
Fri Apr 28 22:39:26 EDT 2006


mike7411 at gmail.com wrote:
> Could someone tell me the easiest way to create a GUI slider control in
> Python?
> 

This is how we do it in the hood:


from Tkinter import *

def callback(value):
   print value

tk = Tk()
s = Scale(tk, orient=HORIZONTAL, command=callback)
s.pack()

tk.mainloop()


I'm not sure about outside the hood.

James

-- 
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095

http://www.jamesstroud.com/



More information about the Python-list mailing list