mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 22:51:39 +00:00
Converted PyStatsLabel to a core instance mode.
--HG-- branch : objp
This commit is contained in:
@@ -8,6 +8,7 @@ from hscommon.trans import trget
|
||||
|
||||
from core.app import JobType
|
||||
from .result_table import PyResultTable
|
||||
from .stats_label import PyStatsLabel
|
||||
|
||||
tr = trget('ui')
|
||||
|
||||
@@ -31,6 +32,7 @@ class PyDupeGuruBase(PyFairware):
|
||||
self.cocoa = cocoa
|
||||
|
||||
resultTable = subproxy('resultTable', 'result_table', PyResultTable)
|
||||
statsLabel = subproxy('statsLabel', 'stats_label', PyStatsLabel)
|
||||
|
||||
#---Directories
|
||||
def addDirectory_(self, directory):
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
from cocoa.inter import PyGUIObject
|
||||
|
||||
from core.gui.stats_label import StatsLabel
|
||||
|
||||
class PyStatsLabel(PyGUIObject):
|
||||
py_class = StatsLabel
|
||||
|
||||
def display(self):
|
||||
return self.py.display
|
||||
|
||||
Reference in New Issue
Block a user