7.1.3.6. Platform

Module to query the platform for features.

class BookBrowser.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 BookBrowser.Common.Platform.PlatformType[source]

Bases: enum.Enum

An enumeration.

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

Bases: BookBrowser.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 BookBrowser.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).