mirror of
https://github.com/arsenetar/dupeguru.git
synced 2024-11-19 13:29:03 +00:00
baa2177439
That was because the dialog was created on launch time rather than on-the-fly. --HG-- branch : objp
30 lines
836 B
Python
30 lines
836 B
Python
from objp.util import pyref
|
|
from cocoa.inter import PyGUIObject, GUIObjectView
|
|
from core.gui.prioritize_dialog import PrioritizeDialog
|
|
|
|
class PrioritizeDialogView(GUIObjectView):
|
|
pass
|
|
|
|
class PyPrioritizeDialog(PyGUIObject):
|
|
def __init__(self, app: pyref):
|
|
model = PrioritizeDialog(app.model)
|
|
PyGUIObject.__init__(self, model)
|
|
|
|
def categoryList(self) -> pyref:
|
|
return self.model.category_list
|
|
|
|
def criteriaList(self) -> pyref:
|
|
return self.model.criteria_list
|
|
|
|
def prioritizationList(self) -> pyref:
|
|
return self.model.prioritization_list
|
|
|
|
def addSelected(self):
|
|
self.model.add_selected()
|
|
|
|
def removeSelected(self):
|
|
self.model.remove_selected()
|
|
|
|
def performReprioritization(self):
|
|
self.model.perform_reprioritization()
|