Bug fix to show only one tip dialog...

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-12-17 01:54:18 +00:00
parent c23c3a0ac3
commit 36483fa725

View File

@@ -252,9 +252,9 @@ class wxPythonDemo(wxFrame):
EVT_MENU(self.tbicon, self.TBMENU_RESTORE, self.OnTaskBarActivate) EVT_MENU(self.tbicon, self.TBMENU_RESTORE, self.OnTaskBarActivate)
EVT_MENU(self.tbicon, self.TBMENU_CLOSE, self.OnTaskBarClose) EVT_MENU(self.tbicon, self.TBMENU_CLOSE, self.OnTaskBarClose)
wxCallAfter(self.ShowTip)
self.otherWin = None self.otherWin = None
self.showTip = true
EVT_IDLE(self, self.OnIdle) EVT_IDLE(self, self.OnIdle)
EVT_CLOSE(self, self.OnCloseWindow) EVT_CLOSE(self, self.OnCloseWindow)
EVT_ICONIZE(self, self.OnIconfiy) EVT_ICONIZE(self, self.OnIconfiy)
@@ -544,10 +544,6 @@ class wxPythonDemo(wxFrame):
self.window = self.otherWin self.window = self.otherWin
self.otherWin = None self.otherWin = None
if self.showTip:
self.ShowTip()
self.showTip = false
#--------------------------------------------- #---------------------------------------------
def ShowTip(self): def ShowTip(self):