Libxfce4ui.Screensaver¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c |
Inhibit the screensaver from activating, e.g. xscreensaver-command –deactivate |
||
r/w/c |
Lock the desktop, e.g. xscreensaver-command –lock |
||
r/w/c |
Whether to lock before suspend/hibernate |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Libxfce4ui.Screensaver(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
An
Libxfce4ui.Screensaver
object, to be released withGObject.Object.unref
() when no longer used.- Return type:
Creates a new
Libxfce4ui.Screensaver
object or increases the reference count of the current object.New in version 4.18.2.
- inhibit(inhibit)¶
- Parameters:
inhibit (
bool
) – whether to inhibit the screensaver from activating
Calling this function with inhibit as
True
will prevent the user’s screensaver from activating. This is useful when the user is watching a movie or giving a presentation.Calling this function with inhibit as
False
will remove any current screensaver inhibit theLibxfce4ui.Screensaver
object has.New in version 4.18.2.
Property Details¶
- Libxfce4ui.Screensaver.props.heartbeat_command¶
-
Inhibit the screensaver from activating, e.g. xscreensaver-command –deactivate
- Libxfce4ui.Screensaver.props.lock_command¶
-
Lock the desktop, e.g. xscreensaver-command –lock