1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Refactoring: de-notified problems_dialog. It simplifies things.

This commit is contained in:
Virgil Dupras
2012-03-13 11:58:07 -04:00
parent b4b9393e14
commit 878c744c21
4 changed files with 9 additions and 25 deletions

View File

@@ -6,14 +6,13 @@
# which should be included with this package. The terms are also available at
# http://www.hardcoded.net/licenses/bsd_license
from hscommon.notify import Listener
from hscommon.gui.table import GUITable, Row
from hscommon.gui.column import Column, Columns
from hscommon.trans import trget
coltr = trget('columns')
class ProblemTable(GUITable, Listener):
class ProblemTable(GUITable):
COLUMNS = [
Column('path', coltr("File Path")),
Column('msg', coltr("Error Message")),
@@ -21,7 +20,6 @@ class ProblemTable(GUITable, Listener):
def __init__(self, problem_dialog):
GUITable.__init__(self)
Listener.__init__(self, problem_dialog)
self.columns = Columns(self)
self.view = None
self.dialog = problem_dialog
@@ -37,10 +35,6 @@ class ProblemTable(GUITable, Listener):
for dupe, msg in problems:
self.append(ProblemRow(self, dupe, msg))
#--- Event handlers
def problems_changed(self):
self.refresh()
class ProblemRow(Row):
def __init__(self, table, dupe, msg):