mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 22:51:39 +00:00
Removed temporary objp conversion hacks.
--HG-- branch : objp
This commit is contained in:
@@ -4,7 +4,7 @@ from objp.util import pyref, dontwrap
|
||||
from jobprogress import job
|
||||
import cocoa
|
||||
from cocoa import install_exception_hook, proxy
|
||||
from cocoa.inter2 import PyFairware, FairwareView
|
||||
from cocoa.inter import PyFairware, FairwareView
|
||||
from hscommon.trans import trget
|
||||
|
||||
from core.app import JobType
|
||||
@@ -45,6 +45,9 @@ class PyDupeGuruBase(PyFairware):
|
||||
def prioritizeDialog(self) -> pyref:
|
||||
return self.model.prioritize_dialog
|
||||
|
||||
def problemDialog(self) -> pyref:
|
||||
return self.model.problem_dialog
|
||||
|
||||
def statsLabel(self) -> pyref:
|
||||
return self.model.stats_label
|
||||
|
||||
|
||||
@@ -76,8 +76,6 @@ class DupeGuru(DupeGuruBase):
|
||||
class PyDupeGuru(PyDupeGuruBase):
|
||||
def __init__(self):
|
||||
self._init(DupeGuru)
|
||||
import __main__
|
||||
__main__.APP_INSTANCE = self.model
|
||||
|
||||
#---Properties
|
||||
def setMinMatchPercentage_(self, percentage: int):
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from cocoa.inter2 import PyGUIObject, GUIObjectView
|
||||
from cocoa.inter import PyGUIObject, GUIObjectView
|
||||
|
||||
class DetailsPanelView(GUIObjectView):
|
||||
pass
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from objp.util import dontwrap
|
||||
from cocoa.inter2 import PyOutline, GUIObjectView
|
||||
from cocoa.inter import PyOutline, GUIObjectView
|
||||
|
||||
class DirectoryOutlineView(GUIObjectView):
|
||||
pass
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from objp.util import dontwrap
|
||||
from cocoa.inter2 import PyGUIObject
|
||||
from cocoa.inter import PyGUIObject
|
||||
|
||||
class ExtraFairwareReminderView:
|
||||
def startTimer(self): pass
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from objp.util import pyref
|
||||
from cocoa.inter2 import PyGUIObject, GUIObjectView
|
||||
from cocoa.inter import PyGUIObject, GUIObjectView
|
||||
|
||||
class PrioritizeDialogView(GUIObjectView):
|
||||
pass
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from cocoa.inter2 import PySelectableList, SelectableListView
|
||||
from cocoa.inter import PySelectableList, SelectableListView
|
||||
|
||||
class PrioritizeListView(SelectableListView):
|
||||
pass
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from objp.util import pyref
|
||||
from cocoa.inter2 import PyGUIObject
|
||||
from cocoa.inter import PyGUIObject
|
||||
|
||||
class PyProblemDialog(PyGUIObject):
|
||||
def problemTable(self) -> pyref:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from objp.util import dontwrap
|
||||
from cocoa.inter2 import PyTable, TableView
|
||||
from cocoa.inter import PyTable, TableView
|
||||
|
||||
class ResultTableView(TableView):
|
||||
def invalidateMarkings(self): pass
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from cocoa.inter2 import PyGUIObject, GUIObjectView
|
||||
from cocoa.inter import PyGUIObject, GUIObjectView
|
||||
|
||||
class StatsLabelView(GUIObjectView):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user