Gepub.Widget¶
- Subclasses:
None
Methods¶
- Inherited:
WebKit2.WebView (93), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Current chapter in the doc |
||
r/w |
Current position in chapter as a percentage |
||
r/w |
The |
||
r |
Number of chapters in the doc |
||
r/w |
If the widget should paginate |
Style Properties¶
- Inherited:
Signals¶
Fields¶
Class Details¶
- class Gepub.Widget(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
the new
Gepub.Widget
created- Return type:
- set_doc(doc)¶
-
Sets doc as the document displayed by the widget.
- set_fontfamily(family)¶
- Parameters:
family (
str
) – the custom font family name
Sets the widget custom font family
- set_fontsize(size)¶
- Parameters:
size (
int
) – the custom font size in pt
Sets the widget custom font size, use 0 to show book’s styles
- set_lineheight(size)¶
- Parameters:
size (
float
) – the custom line height
Sets the widget custom line height, the real size will be this number multiplied by the font size. Use 0 to show book’s styles
- set_margin(margin)¶
- Parameters:
margin (
int
) – the margin in pixels
Sets the widget left and right margin
Property Details¶
- Gepub.Widget.props.chapter¶
-
Current chapter in the doc
- Gepub.Widget.props.chapter_pos¶
-
Current position in chapter as a percentage
- Gepub.Widget.props.nchapters¶
-
Number of chapters in the doc