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

Type SingleChoiceDialog

object --+                    
         |                    
    Object --+                
             |                
    EvtHandler --+            
                 |            
            Window --+        
                     |        
        TopLevelWindow --+    
                         |    
                    Dialog --+
                             |
                            SingleChoiceDialog


A simple dialog with a single selection listbox.


Method Summary
SingleChoiceDialog __init__(parent, message, caption, choices, style, pos)
Constructor.
  __repr__(self)
int GetSelection(self)
Get the index of teh currently selected item.
String GetStringSelection(self)
Returns the string value of the currently selected item
  SetSelection(self, sel)
Set the current selected item to sel

Instance Method Details

__init__(parent, message, caption, choices=EmptyList, style=CHOICEDLG_STYLE, pos=DefaultPosition)
(Constructor)

Constructor. Use ShowModal method to show the dialog.

Parameters:
parent
           (type=Window)

message
           (type=String)

caption
           (type=String)

choices
           (type=List)

style
           (type=long)

pos
           (type=Point)

Returns:
SingleChoiceDialog
Overrides:
wx.Dialog.__init__

GetSelection(self)

Get the index of teh currently selected item.

Returns:
int

GetStringSelection(self)

Returns the string value of the currently selected item

Returns:
String

SetSelection(self, sel)

Set the current selected item to sel

Parameters:
sel
           (type=int)


Generated by Epydoc 2.1.20050511.rpd on Sun Mar 26 10:01:42 2006 http://epydoc.sf.net