mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 06:37:17 +00:00
Removed view arguments from core.gui classes's init methods.
--HG-- branch : objp
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Created By: Virgil Dupras
|
||||
# Created On: 2010-02-06
|
||||
# Copyright 2011 Hardcoded Software (http://www.hardcoded.net)
|
||||
@@ -8,12 +7,12 @@
|
||||
# http://www.hardcoded.net/licenses/bsd_license
|
||||
|
||||
from hscommon.notify import Listener
|
||||
from hscommon.gui.base import NoopGUI
|
||||
|
||||
class GUIObject(Listener):
|
||||
def __init__(self, view, app):
|
||||
def __init__(self, app):
|
||||
Listener.__init__(self, app)
|
||||
if view is not None:
|
||||
self.view = view
|
||||
self.view = NoopGUI()
|
||||
self.app = app
|
||||
|
||||
def directories_changed(self):
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
from .base import GUIObject
|
||||
|
||||
class DetailsPanel(GUIObject):
|
||||
def __init__(self, view, app):
|
||||
GUIObject.__init__(self, view, app)
|
||||
def __init__(self, app):
|
||||
GUIObject.__init__(self, app)
|
||||
self._table = []
|
||||
|
||||
def connect(self):
|
||||
|
||||
@@ -59,8 +59,8 @@ class DirectoryTree(GUIObject, Tree):
|
||||
# refresh()
|
||||
# refresh_states() # when only states label need to be refreshed
|
||||
#
|
||||
def __init__(self, view, app):
|
||||
GUIObject.__init__(self, view, app)
|
||||
def __init__(self, app):
|
||||
GUIObject.__init__(self, app)
|
||||
Tree.__init__(self)
|
||||
|
||||
def connect(self):
|
||||
|
||||
@@ -40,7 +40,7 @@ class PrioritizationList(GUISelectableList):
|
||||
self._refresh_contents()
|
||||
|
||||
class PrioritizeDialog:
|
||||
def __init__(self, view, app):
|
||||
def __init__(self, app):
|
||||
self.app = app
|
||||
self.categories = [cat(app.results) for cat in app._prioritization_categories()]
|
||||
self.category_list = CriterionCategoryList(self)
|
||||
|
||||
@@ -12,11 +12,11 @@ from .base import GUIObject
|
||||
from .problem_table import ProblemTable
|
||||
|
||||
class ProblemDialog(GUIObject, Broadcaster):
|
||||
def __init__(self, view, app):
|
||||
GUIObject.__init__(self, view, app)
|
||||
def __init__(self, app):
|
||||
GUIObject.__init__(self, app)
|
||||
Broadcaster.__init__(self)
|
||||
self._selected_dupe = None
|
||||
self.problem_table = ProblemTable(None, self)
|
||||
self.problem_table = ProblemTable(self)
|
||||
|
||||
def reveal_selected_dupe(self):
|
||||
if self._selected_dupe is not None:
|
||||
|
||||
@@ -19,11 +19,11 @@ class ProblemTable(GUITable, Listener):
|
||||
Column('msg', coltr("Error Message")),
|
||||
]
|
||||
|
||||
def __init__(self, view, problem_dialog):
|
||||
def __init__(self, problem_dialog):
|
||||
GUITable.__init__(self)
|
||||
Listener.__init__(self, problem_dialog)
|
||||
self.columns = Columns(self)
|
||||
self.view = view
|
||||
self.view = None
|
||||
self.dialog = problem_dialog
|
||||
|
||||
#--- Override
|
||||
|
||||
@@ -53,7 +53,7 @@ class DupeRow(Row):
|
||||
|
||||
class ResultTable(GUIObject, GUITable):
|
||||
def __init__(self, app):
|
||||
GUIObject.__init__(self, None, app)
|
||||
GUIObject.__init__(self, app)
|
||||
GUITable.__init__(self)
|
||||
self.columns = Columns(self, prefaccess=app, savename='ResultTable')
|
||||
self._power_marker = False
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Created By: Virgil Dupras
|
||||
# Created On: 2010-02-11
|
||||
# Copyright 2011 Hardcoded Software (http://www.hardcoded.net)
|
||||
|
||||
Reference in New Issue
Block a user