+class MyLog(wxPyLog):
+ def __init__(self, textCtrl, logTime=0):
+ wxPyLog.__init__(self)
+ self.tc = textCtrl
+ self.logTime = logTime
+
+ def DoLogString(self, message, timeStamp):
+ if self.logTime:
+ message = time.strftime("%X", time.localtime(timeStamp)) + \
+ ": " + message
+ self.tc.AppendText(message + '\n')
+
+
+#---------------------------------------------------------------------------
+
+def opj(path):
+ """Convert paths to the platform-specific separator"""
+ return apply(os.path.join, tuple(string.split(path, '/')))
+
+
+#---------------------------------------------------------------------------
+