Changeset 64 for pykoticon/trunk
- Timestamp:
- 01/15/05 20:41:16 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykoticon/trunk/bin/pykoticon
r63 r64 226 226 self.menu.Append(self.TBMENU_CLOSE, "Quit") 227 227 228 wxPython.wx.EVT_CLOSE(self, self.OnClose) 229 228 230 self.TBTIMER = wx.NewId() 229 231 self.chrono = wxPython.wx.wxTimer(self, self.TBTIMER) … … 267 269 else : 268 270 self.tbicon.SetIcon(self.greenicon, "PyKotIcon") 271 if not self.IsIconized() : 272 self.Iconize(True) 273 if self.IsShown(): 274 self.Hide() 269 275 if hasattr(self, "quotasgrid") : 270 276 self.quotasgrid.Destroy() 271 277 del self.quotasgrid 272 278 self.quotasgrid = PyKotIconGrid(self, self.User.Quotas) 279 if self.IsIconized() : 280 self.Iconize(False) 281 if not self.IsShown() : 282 self.Show(True) 273 283 self.inTimer = False 274 284 # Now we want it every 3 minutes 275 self.chrono.Start(1000 * 60 * 3) # every 3 minutes 285 #self.chrono.Start(1000 * 60 * 3) # every 3 minutes 286 self.chrono.Start(1000 * 20) # every 20 seconds 276 287 277 288 def OnIconify(self, event) : … … 285 296 self.Raise() 286 297 287 def OnClose Window(self, event) :298 def OnClose(self, event) : 288 299 if hasattr(self, "chrono") : 289 300 self.chrono.Stop() 290 301 del self.chrono 291 302 if hasattr(self, "menu") : 292 menu.Destroy()303 self.menu.Destroy() 293 304 del self.menu 294 305 if hasattr(self, "tbicon") :