Tkinter Checkboxes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • D

    #1

    Tkinter Checkboxes

    Ok, I'm sure this is something extremely simple that I'm missing,
    but..how do I set a variable in a Tkinter Checkbox? i.e. I have a
    variable "test" - if the checkbox is selected, I want to set test=1,
    otherwise 0. Thanks!

  • Mikael Olofsson

    #2
    Re: Tkinter Checkboxes

    D wrote:[color=blue]
    > Ok, I'm sure this is something extremely simple that I'm missing,
    > but..how do I set a variable in a Tkinter Checkbox? i.e. I have a
    > variable "test" - if the checkbox is selected, I want to set test=1,
    > otherwise 0. Thanks!
    >[/color]

    http://www.pythonware.com/library/tk...7-patterns.htm


    /MiO

    Comment

    • D

      #3
      Re: Tkinter Checkboxes

      Thank, Mikael..after messing with it for quite awhile, I finally found
      out I need the .get()! Appreciate the help..

      Doug

      Comment

      Working...