pdk.Gui.Widgets.ButtonBoxes ($Date: 2002/12/04 10:16:47 $)
index
pdk/Gui/Widgets/ButtonBoxes.py

Button box classes.

FOG 08.2001

 
Classes
            
StaticBoxWrapper
RadioBoxWithWidgets(wxPython.windows.wxPanel, pdk.Gui.Widgets.CoreWidgets.pdkWidget, StaticBoxWrapper)
StateButtonBox(pdk.Gui.Widgets.CoreWidgets.pdkPanel, StaticBoxWrapper)
ClientDataStateButtonBox(StateButtonBox, pdk.Gui.Widgets.Widgets.ClientDataMixin)
pdk.Gui.Widgets.CoreWidgets.pdkPanel(wxPython.windows.wxPanel, pdk.Gui.Widgets.CoreWidgets.pdkWidget)
DialogExitButtonBox
StateButtonBox(pdk.Gui.Widgets.CoreWidgets.pdkPanel, StaticBoxWrapper)
ClientDataStateButtonBox(StateButtonBox, pdk.Gui.Widgets.Widgets.ClientDataMixin)
pdk.Gui.Widgets.CoreWidgets.pdkWidget(pdk.Gui.WidgetStateManagers.StatefulWidget, pdk.Base.OptionHandler)
RadioBoxWithWidgets(wxPython.windows.wxPanel, pdk.Gui.Widgets.CoreWidgets.pdkWidget, StaticBoxWrapper)
wxPython.windows.wxPanel(wxPython.windows.wxPanelPtr)
RadioBoxWithWidgets(wxPython.windows.wxPanel, pdk.Gui.Widgets.CoreWidgets.pdkWidget, StaticBoxWrapper)
 
class RadioBoxWithWidgets(wxPython.windows.wxPanel, pdk.Gui.Widgets.CoreWidgets.pdkWidget, StaticBoxWrapper)
       
  
Method resolution order:
RadioBoxWithWidgets
wxPython.windows.wxPanel
wxPython.windows.wxPanelPtr
wxPython.windows.wxWindowPtr
wxPython.windows.wxEvtHandlerPtr
wxPython.misc.wxObjectPtr
pdk.Gui.Widgets.CoreWidgets.pdkWidget
pdk.Gui.WidgetStateManagers.StatefulWidget
pdk.Base.OptionHandler
StaticBoxWrapper

Methods defined here:
GetSelection(self)
Number(self)
OnSelect(self, ev=None, button=None)
SetSelection(self, index)
__init__(self, parent, wxId, boxLabel=None, choices=[], style=8, **optionD)
addButton(self, buttonLabel, alignOptions=None)
addWidget(self, index, widget, alignOptions=None)
adds the widget widget at the index index index. alignOptions is an optional dictionary that contains options to be passed to the .Add method of the sizer.
getButton(self, index)
returns the button at index position %index%.
getWidget(self, index)
returns the widget associated with the button at index position index.
removeWidget(self, index)
removes the widget from the index position %index%.

Data and non-method functions defined here:
WIDGETOPTIONS = {'buttonAlignOptions': (0, 2304), 'widgetAlignOptions': (1, 2544, 1)}
 
class StateButtonBox(pdk.Gui.Widgets.CoreWidgets.pdkPanel, StaticBoxWrapper)
       
  
Method resolution order:
StateButtonBox
pdk.Gui.Widgets.CoreWidgets.pdkPanel
wxPython.windows.wxPanel
wxPython.windows.wxPanelPtr
wxPython.windows.wxWindowPtr
wxPython.windows.wxEvtHandlerPtr
wxPython.misc.wxObjectPtr
pdk.Gui.Widgets.CoreWidgets.pdkWidget
pdk.Gui.WidgetStateManagers.StatefulWidget
pdk.Base.OptionHandler
StaticBoxWrapper

Methods defined here:
GetItemLabel(self, buttonNo)
GetSelection(self)
Number(self)
SetItemLabel(self, buttonNo, label)
SetSelection(self, selection)
sets the current selection. selection is either an integer (single selection) or a list of integers (multiple selection).
__init__(self, parent, wxId, boxLabel=None, choices=[], style=8, **optionD)
addButton(self, label)
addButtons(self, buttonLabelL)
connectStateSignal(self, callBackF)
deleteButton(self, buttonNo)
disconnectStateSignal(self)
enableButton(self, buttonNo, enableFlag)
enables/disables button %buttonNo% according to %enableFlag%.
getButton(self, buttonNo)
getMaxSelections(self)
getMinSelections(self)
getState(self, stateType)
setMaxSelections(self, maxSel)
setMinSelections(self, minSel)
setState(self, stateType, data)

Data and non-method functions defined here:
WIDGETOPTIONS = {'alignOptions': (0, 2544, 1), 'buttonClass': <class pdk.Gui.Widgets.CoreWidgets.pdkToggleButton>, 'buttonEvent': 10031, 'maxSelections': 1, 'minSelections': 1}
 
class ClientDataStateButtonBox(StateButtonBox, pdk.Gui.Widgets.Widgets.ClientDataMixin)
     
Purpose:a StateButtonBox with client data associated with each button

 
  
Method resolution order:
ClientDataStateButtonBox
StateButtonBox
pdk.Gui.Widgets.CoreWidgets.pdkPanel
wxPython.windows.wxPanel
wxPython.windows.wxPanelPtr
wxPython.windows.wxWindowPtr
wxPython.windows.wxEvtHandlerPtr
wxPython.misc.wxObjectPtr
pdk.Gui.Widgets.CoreWidgets.pdkWidget
pdk.Gui.WidgetStateManagers.StatefulWidget
pdk.Base.OptionHandler
StaticBoxWrapper
pdk.Gui.Widgets.Widgets.ClientDataMixin

Methods defined here:
__init__(self, parent, wxId, boxLabel=None, choices={}, **optionD)
addButton(self, buttonLabel, pyData)
addButtons(self, buttonItemTL)
deleteButton(self, buttonNo)
getItemLabelAndClientData(self, buttonNo)
getState(self, stateType)
setItemLabelAndClientData(self, buttonNo, buttonLabel, pyData)
setState(self, stateType, data)
 
class DialogExitButtonBox(pdk.Gui.Widgets.CoreWidgets.pdkPanel)
     
Purpose:a simple exit button box for wxDialog instances
Detail:

use the "buttons" option to define an arbitrary number of exit buttons in a dialog with a list of the form

[ (<button1 text>,<button1 return code>), ... ]

(the default is [("Ok",wxID_OK),("Cancel",wxID_CANCEL)]).

When pressing a button, the corresponding return code is passed to .EndModal() of the dialog parent (or to .SetReturnCode(), if the dialog is not modal).


 
  
Method resolution order:
DialogExitButtonBox
pdk.Gui.Widgets.CoreWidgets.pdkPanel
wxPython.windows.wxPanel
wxPython.windows.wxPanelPtr
wxPython.windows.wxWindowPtr
wxPython.windows.wxEvtHandlerPtr
wxPython.misc.wxObjectPtr
pdk.Gui.Widgets.CoreWidgets.pdkWidget
pdk.Gui.WidgetStateManagers.StatefulWidget
pdk.Base.OptionHandler

Methods defined here:
OnButton(self, returnCode)
__init__(self, dialog, wxId, **optionD)

Data and non-method functions defined here:
WIDGETOPTIONS = {'buttons': (('Ok', 5100), ('Cancel', 5101)), 'orientation': 4}
 
class StaticBoxWrapper
     
Purpose:mixin class providing a method to put a static box wrapper around a widget

 
   Methods defined here:
makeBox(self, boxLabel)

Data and non-method functions defined here:
BOXPADDING = 2
 
Functions
            
EVT_STATEBUTTONBOX(win, wxId, func)
 
Author
            
$Author: gathmann $