Mercurial > traipse_dev
diff orpg/tools/predTextCtrl.py @ 59:5aff3ef1ae46 ornery-dev
New dev branch for Ornery Orc. Adds CSS styling to chat messages. Updates
Update Manager to 0.7.1. Fixes problem with gametree and names. Adds a multi-
line text entry, grows as you type more lines; not reactive to Shift-Enter,
yet.
author | sirebral |
---|---|
date | Tue, 11 Aug 2009 17:48:30 -0500 |
parents | 4385a7d0efd1 |
children | 118fbe111922 |
line wrap: on
line diff
--- a/orpg/tools/predTextCtrl.py Sat Aug 08 00:25:33 2009 -0500 +++ b/orpg/tools/predTextCtrl.py Tue Aug 11 17:48:30 2009 -0500 @@ -33,6 +33,7 @@ import string from orpg.orpg_windows import * +from wx.lib.expando import ExpandoTextCtrl # This line added to test CVS commit @@ -304,7 +305,7 @@ # # Defines: # findWord(self,insert,st) -class predTextCtrl(wx.TextCtrl): +class predTextCtrl(ExpandoTextCtrl): # Initialization subroutine. # @@ -332,9 +333,9 @@ # Call super() for default behavior if validator: - wx.TextCtrl.__init__(self, parent, id=id, value=value, size=size, style=style, name=name, validator=validator ) + ExpandoTextCtrl.__init__(self, parent, id=id, value=value, size=size, style=style, name=name, validator=validator ) else: - wx.TextCtrl.__init__(self, parent, id=id, value=value, size=size, style=style, name=name) + ExpandoTextCtrl.__init__(self, parent, id=id, value=value, size=size, style=style, name=name) self.tree = LetterTree # Instantiate a new LetterTree. # TODO: make name of word file an argument.