[ocrfeeder] Remove unused class BoxEditor_DataBox_Controler
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder] Remove unused class BoxEditor_DataBox_Controler
- Date: Sat, 20 Dec 2014 22:40:56 +0000 (UTC)
commit 6e952c3a951801dd543eaa22ed12a5a113c2fab2
Author: Joaquim Rocha <me joaquimrocha com>
Date: Sat Dec 20 20:50:14 2014 +0000
Remove unused class BoxEditor_DataBox_Controler
src/ocrfeeder/studio/widgetPresenter.py | 23 -----------------------
1 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/src/ocrfeeder/studio/widgetPresenter.py b/src/ocrfeeder/studio/widgetPresenter.py
index 64c2bfe..f0b51b1 100644
--- a/src/ocrfeeder/studio/widgetPresenter.py
+++ b/src/ocrfeeder/studio/widgetPresenter.py
@@ -729,29 +729,6 @@ class BoxEditor(Gtk.ScrolledWindow):
def editedByUser(self, widget):
self.emit('text_edited_by_user', self.getText())
-class BoxEditor_DataBox_Controller:
-
- def __init__(self, notebook):
- self.notebook = notebook
- self.boxes_list = []
-
- def addEditor(self, pixbuf, box):
- x, y, width, height = box.props.x, box.props.y, box.props.width, box.props.height
- sub_pixbuf = pixbuf.subpixbuf(x, y, width, height)
- box_editor = BoxEditor(sub_pixbuf, x, y, width, height)
- data_box = DataBox(x, y, width, height, sub_pixbuf)
- self.boxes_list.append((box, box_editor, data_box))
- self.notebook.append_page(box_editor, None)
-
- def removeEditor(self, box):
- for i in xrange(len(self.boxes_list)):
- editor_data = self.boxes_list[i]
- if editor_data[0] == box:
- box.remove()
- page_num = self.notebook.page_num(editor_data[1])
- self.notebook.remove_page(page_num)
- del self.boxes_list[i]
-
class FileDialog(Gtk.FileChooserDialog):
def __init__(self, parent, type = 'open', current_folder = '~', filename = None, file_filters = []):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]