mirror of
https://github.com/arsenetar/dupeguru.git
synced 2024-11-14 11:39:03 +00:00
55db21f3e0
--HG-- branch : objp
18 lines
512 B
Python
18 lines
512 B
Python
from objp.util import dontwrap
|
|
from cocoa.inter import PyOutline, GUIObjectView
|
|
|
|
class DirectoryOutlineView(GUIObjectView):
|
|
pass
|
|
|
|
class PyDirectoryOutline(PyOutline):
|
|
def addDirectory_(self, path: str):
|
|
self.model.add_directory(path)
|
|
|
|
def removeSelectedDirectory(self):
|
|
self.model.remove_selected()
|
|
|
|
# python --> cocoa
|
|
@dontwrap
|
|
def refresh_states(self):
|
|
# Under cocoa, both refresh() and refresh_states() do the same thing.
|
|
self.callback.refresh() |