Tkinter question.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ak@silmarill.org

    #1

    Tkinter question.

    Hi, I'd like to create buttons on the fly that will call the same
    function, and the function in question has to know what was the name of
    the button that called it. Unless there is a preferred way for doing
    this.. Perhaps creating a new function on the fly along with the new
    button? Please help.. thanks!

  • ak@silmarill.org

    #2
    Re: Tkinter question.

    Update: I found a way to do what I want with RadioButton with option
    indicatoron=0 which creates a bunch of what looks like regular buttons
    except that when one is pressed the other one is depressed and the
    value of the same variable is changed.

    Thanks dear me.

    ak@silmarill.or g wrote:[color=blue]
    > Hi, I'd like to create buttons on the fly that will call the same
    > function, and the function in question has to know what was the name of
    > the button that called it. Unless there is a preferred way for doing
    > this.. Perhaps creating a new function on the fly along with the new
    > button? Please help.. thanks![/color]

    Comment

    Working...