wx.PlatformInformation

Inheritance diagram for wx.PlatformInformation:



Class API

Methods

__init__()
No docstrings available for this method.

CheckOSVersion(major, minor)

Returns True if the OS version is at least major.minor.

Parameters:

  • major (int)
  • minor (int)

Returns:

bool


CheckToolkitVersion(major, minor)

Returns True if the toolkit version is at least major.minor.

Parameters:

  • major (int)
  • minor (int)

Returns:

bool


GetArchName()

Returns the name for the architecture of this wx.PlatformInformation instance.


Returns:

string


GetArchitecture()

Returns the architecture ID of this wx.PlatformInformation instance.


Returns:

int


GetEndianness()

Returns the endianness ID of this wx.PlatformInformation instance.


Returns:

int


GetEndiannessName()

Returns the endianness name of this wx.PlatformInformation instance.


Returns:

string


GetOSMajorVersion()

Returns the run-time major version of the OS associated with this wx.PlatformInformation instance.

See wx.GetOSVersion for more info.


Returns:

int

See also

CheckOSVersion


GetOSMinorVersion()

Returns the run-time minor version of the OS associated with this wx.PlatformInformation instance.

See wx.GetOSVersion for more info.


Returns:

int

See also

CheckOSVersion


GetOperatingSystemFamilyName()

Returns the operating system family name of the OS associated with this wx.PlatformInformation instance.


Returns:

string


GetOperatingSystemId()

Returns the operating system ID of this wx.PlatformInformation instance.


Returns:

int


GetOperatingSystemIdName()

Returns the operating system ID name of this wx.PlatformInformation instance.


Returns:

string


GetPortId()

Returns the wxWidgets port ID of this wx.PlatformInformation instance.


Returns:

int


GetPortIdName()

Returns the wxWidgets port ID name of this wx.PlatformInformation instance.


Returns:

string


GetPortIdShortName()

Returns the wxWidgets port ID short name of this wx.PlatformInformation instance.


Returns:

string


GetToolkitMajorVersion()

Returns the run-time major version of the toolkit associated with this wx.PlatformInformation instance.


Returns:

int

Note

Note that if GetPortId returns wx.PORT_BASE, then this value is zero (unless externally modified with SetToolkitVersion); that is, no native toolkit is in use.


GetToolkitMinorVersion()

Returns the run-time minor version of the toolkit associated with this wx.PlatformInformation instance.


Returns:

int

Note

Note that if GetPortId returns wx.PORT_BASE, then this value is zero (unless externally modified with SetToolkitVersion); that is, no native toolkit is in use.


IsOk()

Returns True if the instance is fully initialized with valid values.


Returns:

bool


IsUsingUniversalWidgets()

Returns True if the instance describes a wxUniversal build.


Returns:

bool


SetArchitecture(n)

Sets the architecture enum value associated with this wx.PlatformInformation instance.

Parameters:

  • n (int)

SetEndianness(n)

Sets the endiannes enum value associated with this wx.PlatformInformation instance.

Parameters:

  • n (int)

SetOSVersion(major, minor)

Sets the version of the operating system associated with this wx.PlatformInformation instance.

Parameters:

  • major (int)
  • minor (int)

SetOperatingSystemId(n)

Sets the the operating system associated with this wx.PlatformInformation instance.

Parameters:

  • n (int)

SetPortId(n)

Sets the wxWidgets port ID associated with this wx.PlatformInformation instance.

Parameters:

  • n (int)

SetToolkitVersion(major, minor)

Sets the version of wxWidgets associated with this wx.PlatformInformation instance.

Parameters:

  • major (int)
  • minor (int)

Properties

ArchName
See GetArchName
Architecture
See GetArchitecture and SetArchitecture
Endianness
See GetEndianness and SetEndianness
EndiannessName
See GetEndiannessName
OSMajorVersion
See GetOSMajorVersion
OSMinorVersion
See GetOSMinorVersion
OperatingSystemFamilyName
See GetOperatingSystemFamilyName
OperatingSystemId
See GetOperatingSystemId and SetOperatingSystemId
OperatingSystemIdName
See GetOperatingSystemIdName
PortId
See GetPortId and SetPortId
PortIdName
See GetPortIdName
PortIdShortName
See GetPortIdShortName
ToolkitMajorVersion
See GetToolkitMajorVersion
ToolkitMinorVersion
See GetToolkitMinorVersion