fsleyes_widgets.bitmaptoggle¶
This module provides the BitmapToggleButton class, a button
which toggles between two bitmaps.
-
class
fsleyes_widgets.bitmaptoggle.BitmapToggleButton(parent, *args, **kwargs)[source]¶ Bases:
wx._core.ToggleButtonA
wx.ToggleButtonwhich stores a boolean state (True/False), and displays one of two bitmaps depending on the state.When the user presses the button, the boolean state and the displayed bitmap changes accordingly. A
EVT_BITMAP_TOGGLEevent is generated on button presses.Create a
BitmapToggleButton.- Parameters
parent – The
wxparent window.trueBmp – Required. A
wx.Bitmapto display when the button state isTrue.falseBmp – Optional. A
wx.Bitmapto display when the button state isFalse.
All other arguemnts are passed through to the
wx.ToggleButton.__init__method.
-
fsleyes_widgets.bitmaptoggle.EVT_BITMAP_TOGGLE= <wx.core.PyEventBinder object>¶ Identifier for the
BitmapToggleEventevent.
-
fsleyes_widgets.bitmaptoggle.BitmapToggleEvent¶ alias of
wx.lib.newevent.NewEvent.<locals>._Event