from shell import Shell
from version import VERSION
-try:
- True
-except NameError:
- True = 1==1
- False = 1==0
-
class Crust(wx.SplitterWindow):
"""Crust based on SplitterWindow."""
def display(self, calltip):
"""Receiver for Shell.calltip signal."""
- self.SetValue(calltip)
+ ## self.SetValue(calltip) # Caused refresh problem on Windows.
+ self.Clear()
+ self.AppendText(calltip)
class SessionListing(wx.TextCtrl):
'the other half is still in the oven.\n\n' + \
'Shell Revision: %s\n' % self.shell.revision + \
'Interpreter Revision: %s\n\n' % self.shell.interp.revision + \
+ 'Platform: %s\n' % sys.platform + \
'Python Version: %s\n' % sys.version.split()[0] + \
'wxPython Version: %s\n' % wx.VERSION_STRING + \
- 'Platform: %s\n' % sys.platform
+ ('\t(%s)\n' % ", ".join(wx.PlatformInfo[1:]))
dialog = wx.MessageDialog(self, text, title,
wx.OK | wx.ICON_INFORMATION)
dialog.ShowModal()