The shadow module
A View mixin class that draws a nice drop shadow around all pages.
-
class
ShadowViewMixin
[source]
Bases: object
Mixin class that draws a drop shadow around every Page.
Drawing the drop shadow can be turned off by setting dropShadowEnabled
to False.
-
dropShadowEnabled
= True
-
paintEvent
(ev)[source]
-
drawDropShadow
(page, painter, width)[source]
Draw a drop shadow of width pixels around the Page.
The painter is already translated to the topleft corner of the Page.