mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 22:51:39 +00:00
Converted details_panel to objp.
--HG-- branch : objp
This commit is contained in:
@@ -1,13 +1,8 @@
|
||||
from cocoa.inter import signature, PyGUIObject
|
||||
|
||||
from core.gui.details_panel import DetailsPanel
|
||||
from cocoa.inter2 import PyGUIObject
|
||||
|
||||
class PyDetailsPanel(PyGUIObject):
|
||||
py_class = DetailsPanel
|
||||
@signature('i@:')
|
||||
def numberOfRows(self):
|
||||
return self.py.row_count()
|
||||
def numberOfRows(self) -> int:
|
||||
return self.model.row_count()
|
||||
|
||||
@signature('@@:@i')
|
||||
def valueForColumn_row_(self, column, row):
|
||||
return self.py.row(row)[int(column)]
|
||||
def valueForColumn_row_(self, column: str, row: int) -> object:
|
||||
return self.model.row(row)[int(column)]
|
||||
|
||||
Reference in New Issue
Block a user