try:
import posix, path
os = posix
-except NameError:
+except ImportError:
import mac, macpath
os = mac
path = macpath
from WindowParent import WindowParent
from HVSplit import HSplit, VSplit
-class DirList() = VSplit():
+class DirList(VSplit):
#
def create(self, (parent, dirname)):
self = VSplit.create(self, parent)
return self
#
-class DirListWindow() = WindowParent():
+class DirListWindow(WindowParent):
#
def create(self, dirname):
self = WindowParent.create(self, (dirname, (0, 0)))
return self
#
-class SubdirButton() = PushButton():
+class SubdirButton(PushButton):
#
def drawpict(self, d):
PushButton.drawpict(self, d)
window = DirListWindow().create(self.text)
#
-class FileButton() = PushButton():
+class FileButton(PushButton):
#
def up_trigger(self):
stdwin.fleep()
#
-class ModuleButton() = FileButton():
+class ModuleButton(FileButton):
#
def drawpict(self, d):
PushButton.drawpict(self, d)
try:
import posix, path
os = posix
-except NameError:
+except ImportError:
import mac, macpath
os = mac
path = macpath
from WindowParent import WindowParent
from HVSplit import HSplit, VSplit
-class DirList() = VSplit():
+class DirList(VSplit):
#
def create(self, (parent, dirname)):
self = VSplit.create(self, parent)
return self
#
-class DirListWindow() = WindowParent():
+class DirListWindow(WindowParent):
#
def create(self, dirname):
self = WindowParent.create(self, (dirname, (0, 0)))
return self
#
-class SubdirButton() = PushButton():
+class SubdirButton(PushButton):
#
def drawpict(self, d):
PushButton.drawpict(self, d)
window = DirListWindow().create(self.text)
#
-class FileButton() = PushButton():
+class FileButton(PushButton):
#
def up_trigger(self):
stdwin.fleep()
#
-class ModuleButton() = FileButton():
+class ModuleButton(FileButton):
#
def drawpict(self, d):
PushButton.drawpict(self, d)