Update of /cvsroot/pythoncard/PythonCard
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14333
Modified Files:
debug.py
Log Message:
changed unused messages to be denoted as # comment lines in the
Message Watcher
Index: debug.py
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/debug.py,v
retrieving revision 1.134
retrieving revision 1.135
diff -C2 -d -r1.134 -r1.135
*** debug.py 3 Oct 2004 19:21:33 -0000 1.134
--- debug.py 25 Dec 2005 16:40:08 -0000 1.135
***************
*** 87,91 ****
sizer2.Add(self.hideTimers, 0, wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)
sizer2.Add((5, 5), 1) # spacer
! self.hideUnused = wx.CheckBox(panel, -1, 'Hide unused',
wx.DefaultPosition, wx.DefaultSize,
wx.NO_BORDER)
--- 87,91 ----
sizer2.Add(self.hideTimers, 0, wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)
sizer2.Add((5, 5), 1) # spacer
! self.hideUnused = wx.CheckBox(panel, -1, 'Hide unused (#)',
wx.DefaultPosition, wx.DefaultSize,
wx.NO_BORDER)
***************
*** 108,111 ****
--- 108,116 ----
else:
self.msgHistory.StyleSetSize(stc.STC_STYLE_DEFAULT, wx.NORMAL_FONT.GetPointSize())
+ # KEA 2005-12-25
+ # change the lexer to Python
+ # and denote unused messages as comments (e.g. #mouseUp
+ self.msgHistory.StyleSetSpec(stc.STC_P_COMMENTLINE, "fore:#7F7F7F")
+ self.msgHistory.SetLexer(stc.STC_LEX_PYTHON)
self.msgHistory.SetUseHorizontalScrollBar(0)
self.msgHistory.SetMarginWidth(1,0)
***************
*** 134,138 ****
eventText = eventName + ' : ' + sourceName
else:
! eventText = '(' + eventName + ' : ' + sourceName + ')'
# show timer events?
--- 139,143 ----
eventText = eventName + ' : ' + sourceName
else:
! eventText = '# ' + eventName + ' : ' + sourceName
# show timer events?
|