Package wx :: Class Choice
[frames | no frames]

Type Choice

object --+                    
         |                    
    Object --+                
             |                
    EvtHandler --+            
                 |            
            Window --+        
                     |        
               Control --+    
                         |    
            object --+   |    
                     |   |    
         ItemContainer --+    
                         |    
          ControlWithItems --+
                             |
                            Choice

Known Subclasses:
DirFilterListCtrl

A Choice control is used to select one of a list of strings. Unlike a wx.ListBox, only the selection is visible until the user pulls down the menu of choices.

Events

EVT_CHOICE Sent when an item in the list is selected.

Method Summary
  __init__(self, *args, **kwargs)
List choices=[], long style=0, Validator validator=DefaultValidator, String name=ChoiceNameStr) -> Choice
  __repr__(self)
  Create(*args, **kwargs)
List choices=[], long style=0, Validator validator=DefaultValidator, String name=ChoiceNameStr) -> bool
VisualAttributes GetClassDefaultAttributes(variant)
Get the default attributes for this class. (Static method)

Instance Method Details

__init__(self, *args, **kwargs)
(Constructor)

__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
List choices=[], long style=0, Validator validator=DefaultValidator, String name=ChoiceNameStr) -> Choice

Create and show a Choice control

Overrides:
wx.ControlWithItems.__init__

Create(*args, **kwargs)

Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
List choices=[], long style=0, Validator validator=DefaultValidator, String name=ChoiceNameStr) -> bool

Actually create the GUI Choice control for 2-phase creation

Overrides:
wx.Control.Create

Static Method Details

GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL)

Get the default attributes for this class. This is useful if you want to use the same font or colour in your own control as in a standard control -- which is a much better idea than hard coding specific colours or fonts which might look completely out of place on the user's system, especially if it uses themes.

The variant parameter is only relevant under Mac currently and is ignore under other platforms. Under Mac, it will change the size of the returned font. See wx.Window.SetWindowVariant for more about this.

Parameters:
variant
           (type=int)
Returns:
VisualAttributes

Generated by Epydoc 2.1.20040428.rpd on Tue Apr 26 14:24:41 2005 http://epydoc.sf.net