[ocrfeeder] Use Gtk.Paned with the orientation instead of Gtk.HPaned
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder] Use Gtk.Paned with the orientation instead of Gtk.HPaned
- Date: Sun, 11 Mar 2018 13:37:39 +0000 (UTC)
commit 77f25a21a579af25e2346fafad383768bdd5d89d
Author: Joaquim Rocha <me joaquimrocha com>
Date: Sat Jul 16 15:15:06 2016 +0100
Use Gtk.Paned with the orientation instead of Gtk.HPaned
src/ocrfeeder/studio/widgetModeler.py | 4 ++--
src/ocrfeeder/studio/widgetPresenter.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/ocrfeeder/studio/widgetModeler.py b/src/ocrfeeder/studio/widgetModeler.py
index 4818ad1..9be0109 100644
--- a/src/ocrfeeder/studio/widgetModeler.py
+++ b/src/ocrfeeder/studio/widgetModeler.py
@@ -42,10 +42,10 @@ import threading
import sys
_ = gettext.gettext
-class ImageReviewer(Gtk.HPaned):
+class ImageReviewer(Gtk.Paned):
def __init__(self, main_window, page_data, ocr_engines):
- super(ImageReviewer, self).__init__()
+ super(ImageReviewer, self).__init__(orientation=Gtk.Orientation.HORIZONTAL)
self.configuration_manager = ConfigurationManager()
self.main_window = main_window
self.path_to_image = page_data.image_path
diff --git a/src/ocrfeeder/studio/widgetPresenter.py b/src/ocrfeeder/studio/widgetPresenter.py
index a5f6e4b..957518a 100644
--- a/src/ocrfeeder/studio/widgetPresenter.py
+++ b/src/ocrfeeder/studio/widgetPresenter.py
@@ -52,7 +52,7 @@ class MainWindow(Gtk.Window):
self.statusbar.show()
self.main_box.pack_end(self.statusbar, False, False, 0)
- self.main_area = Gtk.HPaned()
+ self.main_area = Gtk.Paned.new(orientation=Gtk.Orientation.HORIZONTAL)
self.main_area.set_position(150)
self.main_area.show()
self.main_box.pack_end(self.main_area, True, True, 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]