2012-01-12 17:34:20 +00:00
|
|
|
from cocoa.inter2 import PyGUIObject, GUIObjectView
|
|
|
|
|
|
|
|
class DetailsPanelView(GUIObjectView):
|
|
|
|
pass
|
2011-09-21 20:02:13 +00:00
|
|
|
|
|
|
|
class PyDetailsPanel(PyGUIObject):
|
2012-01-12 14:41:03 +00:00
|
|
|
def numberOfRows(self) -> int:
|
|
|
|
return self.model.row_count()
|
2011-09-21 20:02:13 +00:00
|
|
|
|
2012-01-12 14:41:03 +00:00
|
|
|
def valueForColumn_row_(self, column: str, row: int) -> object:
|
|
|
|
return self.model.row(row)[int(column)]
|