GUI slider control

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mike7411@gmail.com

    #1

    GUI slider control

    Could someone tell me the easiest way to create a GUI slider control in
    Python?

  • James Stroud

    #2
    Re: GUI slider control

    mike7411@gmail. com wrote:[color=blue]
    > Could someone tell me the easiest way to create a GUI slider control in
    > Python?
    >[/color]

    This is how we do it in the hood:


    from Tkinter import *

    def callback(value) :
    print value

    tk = Tk()
    s = Scale(tk, orient=HORIZONT AL, command=callbac k)
    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


    Comment

    Working...