From: <sir...@us...> - 2003-03-10 18:46:00
|
Update of /cvsroot/btplusplus/BT++/src/TabLog In directory sc8-pr-cvs1:/tmp/cvs-serv5620/src/TabLog Modified Files: TabLog.py Log Message: - Fixed bug in lock/unlock. - Added clear button to the log tab. Index: TabLog.py =================================================================== RCS file: /cvsroot/btplusplus/BT++/src/TabLog/TabLog.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TabLog.py 3 Mar 2003 22:15:26 -0000 1.3 --- TabLog.py 10 Mar 2003 18:45:57 -0000 1.4 *************** *** 6,10 **** wxPanel.__init__(self, parent, -1, wxPoint(2,65), wxSize(786,347), style = 0) ! self.LogWnd = LogWindow( self, wxPoint(0,0), wxSize(786,200) ) self.LogWnd.SetHelpText("This is the log window, details on torrents (and errors) will appear here.") --- 6,10 ---- wxPanel.__init__(self, parent, -1, wxPoint(2,65), wxSize(786,347), style = 0) ! self.LogWnd = LogWindow( self, wxPoint(0,0), wxSize(786,180) ) self.LogWnd.SetHelpText("This is the log window, details on torrents (and errors) will appear here.") *************** *** 12,17 **** Log( 'Starting up...', [0,0,0], false ) sizer = wxBoxSizer(wxVERTICAL) ! sizer.Add( self.LogWnd, 1, wxEXPAND | wxALL, 3) self.SetSizer( sizer ) --- 12,25 ---- Log( 'Starting up...', [0,0,0], false ) + self.ButClearLog = wxButton(self, -1, 'Clear Log', wxPoint(0,180) ) + sizer = wxBoxSizer(wxVERTICAL) ! sizer.Add( self.LogWnd, 1, wxEXPAND | wxALL, 3) ! sizer.Add( self.ButClearLog, 0, wxALIGN_RIGHT | wxBOTTOM | wxLEFT | wxRIGHT, 3) self.SetSizer( sizer ) + + EVT_BUTTON( self, self.ButClearLog.GetId(), self.Func_ButClearLog ) + + def Func_ButClearLog(self, evt): + self.LogWnd.Clear() |