10.1.1.10. Platform

Module to query the platform for features.

class Patro.Common.Platform.Platform[source]

Bases: object

Class to store platform properties

__init__()[source]

Initialize self. See help(type(self)) for accurate signature.

__str__()[source]

Return str(self).

_get_cpu()[source]
_get_cpu_khz()[source]
_get_memory_size_kb()[source]
_get_number_of_cores()[source]
_get_os()[source]
class Patro.Common.Platform.PlatformType[source]

Bases: enum.Enum

An enumeration.

Linux = 1
OSX = 3
Windows = 2
class Patro.Common.Platform.QtPlatform[source]

Bases: Patro.Common.Platform.Platform

Class to store Qt platform properties

__init__()[source]

Initialize self. See help(type(self)) for accurate signature.

__str__()[source]

Return str(self).

number_of_screens
query_opengl()[source]
class Patro.Common.Platform.Screen(qt_screen)[source]

Bases: object

Class to store screen properties

__init__(qt_screen)[source]

Initialize self. See help(type(self)) for accurate signature.

__str__()[source]

Return str(self).