diff options
Diffstat (limited to 'epubadapter.py')
-rw-r--r-- | epubadapter.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epubadapter.py b/epubadapter.py index 4583b94..8def465 100644 --- a/epubadapter.py +++ b/epubadapter.py @@ -1,4 +1,4 @@ -from gi.repository import GObject +import gobject import logging import epubview @@ -19,7 +19,7 @@ class EpubViewer(epubview.EpubView): self.connect('selection-changed', activity._view_selection_changed_cb) - activity._hbox.pack_start(self, True, True, 0) + activity._hbox.pack_start(self, expand=True, fill=True) self.show_all() # text to speech initialization self.current_word = 0 @@ -122,7 +122,7 @@ class EpubViewer(epubview.EpubView): if self._ready: self._load_page(n) else: - GObject.timeout_add(200, self._try_load_page, n) + gobject.timeout_add(200, self._try_load_page, n) def get_current_page(self): return int(self._loaded_page - 1) |