Home | Trees | Index | Help |
|
---|
Package wx :: Package lib :: Module buttons :: Class GenBitmapTextToggleButton |
|
object
--+ |Object
--+ |EvtHandler
--+ |Window
--+ |Control
--+ |PyControl
--+ |GenButton
--+ |GenBitmapButton
--+ |GenBitmapTextButton
--+ |__ToggleMixin
--+ | GenBitmapTextToggleButton
A generic toggle bitmap button with text label
Method Summary | |
---|---|
Inherited from GenBitmapTextButton | |
| |
| |
Inherited from GenBitmapButton | |
| |
| |
| |
| |
Set bitmap to display when the button is disabled | |
Set bitmap to display when the button has the focus | |
Set the bitmap to display normally. | |
Set bitmap to display when the button is selected (pressed down) | |
Inherited from GenButton | |
Overridden base class virtual. | |
Overridden base class virtual. | |
| |
| |
| |
Return the width of the 3D effect | |
Overridden base class virtual. | |
Return focus indicator flag | |
Calculate a new set of highlight and shadow colours based on the background colour. | |
| |
| |
| |
| |
| |
Given the current font and bezel width settings, calculate and set a good size. | |
Set the width of the 3D effect | |
| |
| |
Specifiy if a focus indicator (dotted line) should be used | |
Overridden base class virtual. | |
Inherited from PyControl | |
| |
bool |
|
bool |
|
| |
Size |
|
(width, height) |
|
(x,y) |
|
(width, height) |
|
Size |
|
| |
| |
| |
| |
VisualAttributes |
|
Size |
|
| |
| |
| |
bool |
|
bool |
|
bool |
|
bool |
|
bool |
|
Inherited from Control | |
Simulates the effect of the user issuing a command to the item. | |
bool |
Do the 2nd phase and create the GUI control. |
VisualAttributes |
Get the default attributes for this class. (Static method) |
String |
Return a control's text. |
Sets the item's text. | |
Inherited from Window | |
bool |
Can this window be given focus by keyboard navigation? if not, the only way to give it focus (provided it accepts it at all) is to click it. |
Adds a child window. | |
Associate the window with a new native handle | |
Cache the best size so it doesn't need to be calculated again, (at least until some properties of the window change.) | |
Directs all mouse input to this window. | |
Centers the window. | |
Center with respect to the the parent window | |
<function CenterOnScreen at 0xb7bc94c4> is deprecated | |
Centers the window. | |
Center with respect to the the parent window | |
<function CenterOnScreen at 0xb7bc94c4> is deprecated | |
Clears the window by filling it with the current background colour. | |
Point |
Converts to screen coordinates from coordinates relative to this window. |
(x,y) |
Converts to screen coordinates from coordinates relative to this window. |
bool |
This function simply generates a EVT_CLOSE event whose handler usually tries to close the window. |
Point |
Converts a point or size from dialog units to pixels. |
Size |
Converts a point or size from dialog units to pixels. |
Point |
|
Size |
|
bool |
Destroys the window safely. |
bool |
Destroys all children of a window. |
bool |
Disables the window, same as Enable(false). |
Dissociate the current native handle from the window | |
Point |
Converts a point or size from dialog units to pixels. |
Size |
Converts a point or size from dialog units to pixels. |
Enables or disables eligibility for drop file events, EVT_DROP_FILES. | |
Window |
Returns the window or control that currently has the keyboard focus, or None. (Static method) |
Window |
Find a chld of this window by window ID |
Window |
Find a child of this window by name |
Sizes the window so that it fits around its subwindows. | |
Similar to Fit, but sizes the interior (virtual) size of a window. | |
Freezes the window or, in other words, prevents any updates from taking place on screen, the window is not redrawn at all. | |
AcceleratorTable |
Gets the accelerator table for this window. |
Size |
This method is similar to GetBestSize, except in one thing. |
bool |
Returns the current autoLayout setting |
Colour |
Returns the background colour of the window. |
int |
Returns the background style of the window. |
Size |
This function will merge the window's best size into the window's minimum size, giving priority to the min size components, and returns the results. |
Size |
This function returns the best acceptable minimal size for the window, if applicable. |
(width, height) |
This function returns the best acceptable minimal size for the window, if applicable. |
Size |
Return the largest of ClientSize and BestSize (as determined by a sizer, interior children, or other means) |
int |
GetBorder(self) -> int |
Window |
Returns the window which currently captures the mouse or None (Static method) |
Caret |
Returns the caret associated with the window. |
int |
Get the (average) character size for the current font. |
int |
Get the (average) character size for the current font. |
PyObject |
Returns a list of the window's children. |
Point |
Get the origin of the client area of the window relative to the window's top left corner (the client area may be shifted because of the borders, scrollbars, other decorations...) |
Rect |
Get the client area position and size as a wx.Rect object. |
Size |
This gets the size of the window's 'client area' in pixels. |
(width, height) |
This gets the size of the window's 'client area' in pixels. |
LayoutConstraints |
Returns a pointer to the window's layout constraints, or None if there are none. |
Sizer |
Return the sizer that this window is a member of, if any, otherwise None. |
Cursor |
Return the cursor associated with this window. |
Window |
Get the default child of this parent, i.e. |
DropTarget |
Returns the associated drop target, which may be None. |
EvtHandler |
Returns the event handler for this window. |
long |
Returns the extra style bits for the window. |
Font |
Returns the default font used for this window. |
Colour |
Returns the foreground colour of the window. |
(width, height, descent, externalLeading) |
Get the width, height, decent and leading of the text using the current or specified font. |
Window |
Returns the parent of the parent of this window, or None if there isn't one. |
long |
Returns the platform-specific handle (as a long integer) of the physical window. |
String |
Gets the help text to be used as context-sensitive help for this window. |
int |
Returns the identifier of the window. |
int |
|
Size |
|
int |
|
int |
|
Size |
|
int |
|
String |
Returns the windows name. |
Window |
Returns the parent window of this window, or None if there isn't one. |
Point |
Get the window's position. |
(x,y) |
Get the window's position. |
Rect |
Returns the size and position of the window as a wx.Rect object. |
int |
Returns the built-in scrollbar position. |
int |
Returns the built-in scrollbar range. |
int |
Returns the built-in scrollbar thumb size. |
Size |
Get the window size. |
Sizer |
Return the sizer associated with the window by a previous call to SetSizer or None if there isn't one. |
(width, height) |
Get the window size. |
(width, height) |
Get the width and height of the text using the current font. |
bool |
Return the themeEnabled flag. |
String |
Gets the window's title. |
ToolTip |
get the associated tooltip or None if none |
Rect |
Get the update rectangle region bounding box in client coords. |
Region |
Returns the region specifying which parts of the window have been damaged. |
Validator |
Returns a pointer to the current validator for the window, or None if there is none. |
Size |
Get the the virtual size of the window in pixels. |
(width, height) |
Get the the virtual size of the window in pixels. |
long |
Gets the window style that was passed to the constructor or Create method. |
long |
Gets the window style that was passed to the constructor or Create method. |
int |
|
bool |
Returns true if this window has the current mouse capture. |
bool |
Test if the given style is set for this window. |
bool |
Does the window have the scrollbar for this orientation? |
bool |
Returns True if this window's background is transparent (as, for example, for wx.StaticText ) and should show the parent window's
background. |
bool |
Equivalent to calling Show(False). |
int |
Test where the given (in client coords) point lies |
int |
Test where the given (in client coords) point lies |
This function is (or should be, in case of custom controls) called during window creation to intelligently set up the window visual attributes, that is the font and the foreground and background colours. | |
bool |
|
Sends an EVT_INIT_DIALOG event, whose handler usually transfers data to the dialog via validators. | |
Reset the cached best size value so it will be recalculated the next time it is needed. | |
bool |
Is the window in the process of being deleted? |
bool |
Returns true if the window is enabled for input, false otherwise. |
bool |
Returns true if the given point or rectangle area has been exposed since the last repaint. |
bool |
Returns true if the given point or rectangle area has been exposed since the last repaint. |
bool |
Returns true if the given point or rectangle area has been exposed since the last repaint. |
bool |
Returns true if the window is retained, false otherwise. |
bool |
Returns true if the window is shown, false if it has been hidden. |
bool |
Returns true if the given window is a top-level one. |
bool |
Invokes the constraint-based layout algorithm or the sizer-based algorithm for this window. |
bool |
This is just a wrapper for ScrollLines(1). |
bool |
This is just a wrapper for ScrollLines(-1). |
Lowers the window to the bottom of the window hierarchy. | |
Disables all other windows in the application so that the user can only interact with this window. | |
Moves the window to the given position. | |
Moves this window in the tab navigation order after the specified sibling window. | |
Same as MoveAfterInTabOrder except that it inserts this window just
before win instead of putting it right after it. | |
Moves the window to the given position. | |
bool |
Does keyboard navigation from this window to another, by sending a wx.NavigationKeyEvent . |
int |
Generate a control id for the controls which were not given one. (Static method) |
int |
Get the id of the control following the one with the given autogenerated) id (Static method) |
bool |
This is just a wrapper for ScrollPages(1). |
bool |
This is just a wrapper for ScrollPages(-1). |
EvtHandler |
Removes and returns the top-most event handler on the event handler stack. |
bool |
Pops up the given menu at the specified coordinates, relative to this window, and returns control when the user has dismissed the menu. |
bool |
Pops up the given menu at the specified coordinates, relative to this window, and returns control when the user has dismissed the menu. |
Phase 3 of the 2-phase create <wink!> Call this method after precreating the window with the 2-phase create method. | |
Call this function to prepare the device context for drawing a scrolled image. | |
int |
Get the id of the control preceding the one with the given autogenerated) id (Static method) |
Pushes this event handler onto the event handler stack for the window. | |
Raises the window to the top of the window hierarchy. | |
Mark the specified rectangle (or the whole window) as "dirty" so it will be repainted. | |
Redraws the contents of the given rectangle: the area inside it will be repainted. | |
bool |
Registers a system wide hotkey. |
Releases mouse input captured with wx.Window.CaptureMouse. | |
Removes a child window. | |
bool |
Find the given handler in the event handler chain and remove (but not delete) it from the event handler chain, return True if it was found and False otherwise (this also results in an assert failure so this function should only be called when the handler is supposed to be there.) |
bool |
Reparents the window, i.e the window will be removed from its current parent window (e.g. |
Point |
Converts from screen to client window coordinates. |
(x,y) |
Converts from screen to client window coordinates. |
bool |
If the platform and window class supports it, scrolls the window by the given number of lines down, if lines is positive, or up if lines is negative. |
bool |
If the platform and window class supports it, scrolls the window by the given number of pages down, if pages is positive, or up if pages is negative. |
Physically scrolls the pixels in the window and move child windows accordingly. | |
| |
Sets the accelerator table for this window. | |
Determines whether the Layout function will be called automatically when the window is resized. | |
bool |
Returns the background style of the window. |
A 'Smart' SetSize that will fill in default size components with the window's best size values. | |
Sets the caret associated with the window. | |
This sets the size of the window client area in pixels. | |
This sets the size of the window client area in pixels. | |
This sets the size of the window client area in pixels. | |
Sets the window to have the given layout constraints. | |
This normally does not need to be called by application code. | |
bool |
Sets the window's cursor. |
Window |
Set this child as default, return the old default. |
Sets the position and size of the window in pixels. | |
Associates a drop target with this window. | |
Sets the event handler for this window. | |
Sets the extra style bits for the window. | |
Set's the focus to this window, allowing it to receive keyboard input. | |
Set focus to this window as the result of a keyboard action. | |
bool |
Sets the font for this window. |
Sets the help text to be used as context-sensitive help for this window. | |
Associate this help text with all windows with the same id as this one. | |
Sets the identifier of the window. | |
A more convenient method than SetSizeHints for setting just the
max size. | |
A more convenient method than SetSizeHints for setting just the
min size. | |
Sets the window's name. | |
| |
| |
| |
Moves the window to the given position. | |
Sets the position and size of the window in pixels using a wx.Rect. | |
| |
Sets the position of one of the built-in scrollbars. | |
Sets the size of the window in pixels. | |
Allows specification of minimum and maximum window sizes, and window size increments. | |
Allows specification of minimum and maximum window sizes, and window size increments. | |
Sets the window to have the given layout sizer. | |
The same as SetSizer, except it also sets the size hints for the window based on the sizer's minimum size. | |
Sets the size of the window in pixels. | |
code to draw the windows' background instead if its own background drawing code. | |
Sets the window's title. | |
Set this child as temporary default | |
Attach a tooltip to the window. | |
Attach a tooltip to the window. | |
Deletes the current validator (if any) and sets the window validator, having called wx.Validator.Clone to create a new validator of this type. | |
Set the the virtual size of a window in pixels. | |
Allows specification of minimum and maximum virtual window sizes. | |
Allows specification of minimum and maximum virtual window sizes. | |
Set the the virtual size of a window in pixels. | |
Sets the style of the window. | |
Sets the style of the window. | |
Sets the variant of the window/font size to use for this window, if the platform supports variants, for example, wxMac. | |
bool |
Shows or hides the window. |
Reenables window updating after a previous call to Freeze. | |
bool |
Transfers values from child controls to data areas specified by their validators. |
bool |
Transfers values to child controls from data areas specified by their validators. |
bool |
Unregisters a system wide hotkey. |
Calling this method immediately repaints the invalidated area of the window instead of waiting for the EVT_PAINT event to happen, (normally this would usually only happen when the flow of control returns to the event loop.) Notice that this function doesn't refresh the window and does nothing if the window has been already repainted. | |
This function sends EVT_UPDATE_UI events to the window. | |
bool |
|
bool |
Validates the current values of the child controls using their validators. |
Moves the pointer to the given position on the window. | |
Inherited from EvtHandler | |
| |
Bind an event to an event handler. | |
| |
bool |
|
bool |
|
EvtHandler |
|
EvtHandler |
|
bool |
|
| |
| |
| |
| |
Disconencts the event handler binding for event from self. | |
Inherited from Object | |
String |
Returns the class name of the C++ class using wxRTTI. |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
Return a new object with type S, a subtype of T... | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... |
Class Variable Summary | |
---|---|
Inherited from GenButton | |
int |
labelDelta = 1 |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Sat Jun 16 17:02:22 2007 | http://epydoc.sf.net |