Changeset 2331

Show
Ignore:
Timestamp:
08/05/08 01:08:40 (4 months ago)
Author:
mdcurran
Message:

pythonConsole: use a richEdit control to show the output of commands rather than just an edit control. Fixes some problems when moving by word in that control in Windows Vista and possible other systems.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/source/pythonConsole.py

    r2063 r2331  
    6363                self.Bind(wx.EVT_CLOSE, self.onClose) 
    6464                mainSizer = wx.BoxSizer(wx.VERTICAL) 
    65                 self.outputCtrl = wx.TextCtrl(self, wx.ID_ANY, size=(500, 500), style=wx.TE_MULTILINE | wx.TE_READONLY) 
     65                self.outputCtrl = wx.TextCtrl(self, wx.ID_ANY, size=(500, 500), style=wx.TE_MULTILINE | wx.TE_READONLY|wx.TE_RICH) 
    6666                self.outputCtrl.Bind(wx.EVT_CHAR, self.onOutputChar) 
    6767                mainSizer.Add(self.outputCtrl, proportion=2, flag=wx.EXPAND)