A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://wxpython.org/Phoenix/docs/html/wx.ThreadEvent.html below:

wx.ThreadEvent — wxPython Phoenix 4.2.4a1 documentation

wx.ThreadEvent¶

This class adds some simple functionality to wx.Event to facilitate inter-thread communication.

This event is not natively emitted by any control/class: it is just a helper class for the user. Its most important feature is the GetEventCategory implementation which allows thread events NOT to be processed by wx.EventLoopBase.YieldFor calls (unless the wxEVT_CATEGORY_THREAD is specified - which is never in code).

Added in version 2.9.0.

Class Hierarchy¶

Inheritance diagram for class

ThreadEvent

:

Methods Summary¶ Properties Summary¶ Class API¶
class wx.ThreadEvent(Event)¶

Possible constructors:

ThreadEvent(eventType=wxEVT_THREAD, id=ID_ANY) -> None

This class adds some simple functionality to Event to facilitate inter-thread communication.


Methods¶
__init__(self, eventType=wxEVT_THREAD, id=ID_ANY)¶

Constructor.

Parameters:
  • eventType (wx.EventType)

  • id (int)

Return type:

None


Clone(self)¶

Clones this event making sure that all internal members which use COW (only m_commandString for now; see Reference Counting) are unshared (see wx.Object.UnShare ).

Return type:

wx.Event


GetEventCategory(self)¶

Returns wxEVT_CATEGORY_THREAD .

This is important to avoid unwanted processing of thread events when calling wx.EventLoopBase.YieldFor .

Return type:

wx.EventCategory


Returns extra information integer value.

Return type:

int


GetInt(self)¶

Returns stored integer value.

Return type:

int


GetString(self)¶

Returns stored string value.

Return type:

str


Sets the extra information value.

Parameters:

extraLong (long)

Return type:

None


SetInt(self, intCommand)¶

Sets the integer value.

Parameters:

intCommand (int)

Return type:

None


SetString(self, string)¶

Sets the string value.

Parameters:

string (string)

Return type:

None


Properties¶
EventCategory¶

See GetEventCategory


See GetExtraLong and SetExtraLong


Int¶

See GetInt and SetInt


String¶

See GetString and SetString


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4