GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing docs.wxpython.org — wx.UpdateUIEvent — wxPython 4.3.2 Docs
|
Constructor. |
|
Returns |
|
Check or uncheck the UI element. |
|
Enable or disable the UI element. |
|
Return the state a wx.CheckBox with |
|
Returns |
|
Returns |
|
Static function returning a value specifying how wxWidgets will send update events: to all windows, or only to those which specify that they will process the events. |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns the text that should be set for the UI element. |
|
Returns the current interval between updates in milliseconds. |
|
Returns |
|
Returns |
|
Used internally to reset the last-updated time to the current time. |
|
For wx.CheckBox with |
|
Specify how wxWidgets will send update events: to all windows, or only to those which specify that they will process the events. |
|
Sets the text for this UI element. |
|
Sets the interval between updates in milliseconds. |
|
Show or hide the UI element. |
Properties Summary¶See |
|
See |
|
Class API¶Possible constructors:
UpdateUIEvent(commandId=0) -> None
This class is used for pseudo-events which are called by wxWidgets to give an application the chance to update various user interface elements.
Constructor.
commandId (wx.WindowID)
None
Returns True if it is appropriate to update (send UI update events to) this window.
This function looks at the mode used (see wx.UpdateUIEvent.SetMode ), the wx.WS_EX_PROCESS_UI_UPDATES flag in window, the time update events were last sent in idle time, and the update interval, to determine whether events should be sent to this window now. By default this will always return True because the update mode is initially wx.UPDATE_UI_PROCESS_ALL and the interval is set to 0; so update events will be sent as often as possible. You can reduce the frequency that events are sent by changing the mode and/or setting an update interval.
window (wx.Window)
bool
See also
Check or uncheck the UI element.
check (bool)
None
Enable or disable the UI element.
enable (bool)
None
Return the state a wx.CheckBox with wx.CHK_3STATE should display.
Added in version 4.3/wxWidgets-3.3.0.
Returns True if the UI element should be checked.
bool
Returns True if the UI element should be enabled.
bool
Static function returning a value specifying how wxWidgets will send update events: to all windows, or only to those which specify that they will process the events.
See also
Returns True if the application has called Check or SetSet3StateValue().
For wxWidgets internal use only.
bool
Returns True if the application has called Enable .
For wxWidgets internal use only.
bool
Returns True if the application has called Show .
For wxWidgets internal use only.
bool
Returns True if the application has called SetText .
For wxWidgets internal use only.
bool
Returns True if the UI element should be shown.
bool
Returns the text that should be set for the UI element.
str
Returns the current interval between updates in milliseconds.
The value -1 disables updates, 0 updates as frequently as possible.
int
See also
Returns True if the UI element supports CheckboxState.
For the event handlers that can be used for multiple items, not all of which support CheckboxState, this method can be useful to determine whether to call Set3StateValue on the event object or not, i.e. the main use case for this method is:
bool
Added in version 4.3/wxWidgets-3.3.0.
Returns True if the UI element can be checked.
For the event handlers that can be used for multiple items, not all of which can be checked, this method can be useful to determine whether to call Check on the event object or not, i.e. the main use case for this method is:
def OnUpdateUI(self, event): .... if event.IsCheckable() event.Check(...some condition...)
bool
Added in version 4.1/wxWidgets-3.1.5.
Used internally to reset the last-updated time to the current time.
It is assumed that update events are normally sent in idle time, so this is called at the end of idle processing.
None
See also
For wx.CheckBox with wx.CHK_3STATE: Set the UI element state.
check (CheckBoxState)
None
Added in version 4.3/wxWidgets-3.3.0.
Specify how wxWidgets will send update events: to all windows, or only to those which specify that they will process the events.
mode (UpdateUIMode) – this parameter may be one of the wx.UpdateUIMode enumeration values. The default mode is wx.UPDATE_UI_PROCESS_ALL.
None
Sets the text for this UI element.
text (string)
None
Sets the interval between updates in milliseconds.
Set to -1 to disable updates, or to 0 to update as frequently as possible. The default is 0.
Use this to reduce the overhead of UI update events if your application has a lot of windows. If you set the value to -1 or greater than 0, you may also need to call wx.Window.UpdateWindowUI at appropriate points in your application, such as when a dialog is about to be shown.
updateInterval (long)
None
Show or hide the UI element.
show (bool)
None
See GetChecked and Check
See GetEnabled and Enable