pyface.i_system_metrics module

The interface to system metrics (screen width and height etc).

class pyface.i_system_metrics.ISystemMetrics(adaptee, default=<class 'traits.adaptation.adaptation_error.AdaptationError'>)[source]

Bases: traits.has_traits.Interface

The interface to system metrics (screen width and height etc).

screen_width = Int()

The width of the screen in pixels.

screen_height = Int()

The height of the screen in pixels.

class pyface.i_system_metrics.MSystemMetrics[source]

Bases: traits.has_traits.HasTraits

The mixin class that contains common code for toolkit specific implementations of the ISystemMetrics interface.