How to select an item in a comboBox?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • peachdot
    New Member
    • Aug 2010
    • 20

    How to select an item in a comboBox?

    hi.,

    User will select an item from a comboBox.
    Example:
    Selection 1 : Quadratic
    Selection 2: Trigonometri

    Im not sure how do i recognize which selection has been made by the user in my code. Help!

    Code:
    if self._comboBox1.SelectedItem  :
    
    		else:
    			MessageBox.Show(
    						"Please Choose a Topic"
    					)
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    What GUI toolbox are you using? In Tkinter, you initialize a variable, pass the variable to the widget constructor and use the set() and get() methods of the variable to access the value.

    Comment

    • dwblas
      Recognized Expert Contributor
      • May 2008
      • 626

      #3
      Take a look at the second post on this entry on this forum http://bytes.com/topic/python/answer...bobox-combobox

      Comment

      • peachdot
        New Member
        • Aug 2010
        • 20

        #4
        Im using SharpDevelop.

        Comment

        Working...