Thanks, that did the trick perfectly :)
also got rid of the self._log member so the class is now just:
class LogControl:
""" Simple helper to redirect stdout to a panel in the GUI """
def __init__( self, textCtrl ):
self._ctrl = textCtrl
self.write( "Application Started..." )
def write( self, Message ):
# Add message to log and force scroll bars to end of window
self._ctrl.SetValue( self._ctrl.GetValue() + Message )
self._ctrl.ShowPosition(self._ctrl.GetLastPosition())
Lovely :)
--
http://mail.python.org/mailman/listinfo/python-list