blighty package¶
Module content¶
This module contains the common objects and types for the different kind of
canvases provided by blighty
.
-
class
blighty.
CanvasGravity
[source]¶ Window gravity control type.
The positioning of a canvas on the screen is controlled by its gravity. By default, a window is positioned in a coordinate system where the origin is located in the top-left corner of the screen, with the x axis running horizontally from left to right, and the y from top to bottom. To change the location of the origin, use one of the following values.
-
CENTER
= 5¶
-
EAST
= 6¶
-
NORTH
= 2¶
-
NORTH_EAST
= 3¶
-
NORTH_WEST
= 1¶
-
SOUTH
= 8¶
-
SOUTH_EAST
= 9¶
-
SOUTH_WEST
= 7¶
-
STATIC
= 10¶
-
WEST
= 4¶
-
-
class
blighty.
CanvasType
[source]¶ The Canvas type.
The canvas types enumerated in this Python type reflect the same window types that one can request to the window manager via the Extended Window Manager Hints.
NORMAL
is a normal top-level window.DESKTOP
is a window drawn directly on the desktop.DOCK
indicates a dock or panel window that will usually stay on top of other windows.UNDECORATED
is a type of window that behaves as a toolbar. As such, it is undecorated.
-
DESKTOP
= 1¶
-
DOCK
= 2¶
-
NORMAL
= 0¶
-
UNDECORATED
= 3¶