2011-09-21 20:02:13 +00:00
|
|
|
from hscommon.cocoa.inter import PyOutline
|
|
|
|
|
|
|
|
from core.gui.directory_tree import DirectoryTree
|
|
|
|
|
|
|
|
class PyDirectoryOutline(PyOutline):
|
|
|
|
py_class = DirectoryTree
|
|
|
|
|
|
|
|
def addDirectory_(self, path):
|
|
|
|
self.py.add_directory(path)
|
|
|
|
|
2011-11-28 19:21:10 +00:00
|
|
|
def removeSelectedDirectory(self):
|
|
|
|
self.py.remove_selected()
|
|
|
|
|
2011-09-21 20:02:13 +00:00
|
|
|
# python --> cocoa
|
|
|
|
def refresh_states(self):
|
|
|
|
# Under cocoa, both refresh() and refresh_states() do the same thing.
|
|
|
|
self.cocoa.refresh()
|