Changeset 109
- Timestamp:
- 03/05/06 17:29:22 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykoticon/trunk/bin/pykoticon
r108 r109 217 217 wx.EVT_MENU(self.tbicon, self.TBMENU_CLOSE, \ 218 218 self.OnTaskBarClose) 219 self.menu = wx.wxMenu()220 self.menu.Append(self.TBMENU_RESTORE, _("Show Print Quota"))221 self.menu.Append(self.TBMENU_CLOSE, _("Quit"))219 #self.menu = wx.wxMenu() 220 #self.menu.Append(self.TBMENU_RESTORE, _("Show Print Quota")) 221 #self.menu.Append(self.TBMENU_CLOSE, _("Quit")) 222 222 223 223 wx.EVT_ICONIZE(self, self.OnIconify) … … 239 239 def OnClose(self, event) : 240 240 self.closeServer() 241 if hasattr(self, "menu"):241 try : 242 242 self.menu.Destroy() 243 del self.menu 244 if hasattr(self, "tbicon") and self.tbicon : 243 except AttributeError : 244 pass 245 try : 245 246 self.tbicon.Destroy() 246 del self.tbicon 247 except AttributeError : 248 pass 247 249 self.Destroy() 248 250 249 251 def OnTaskBarMenu(self, event) : 250 252 if self.tbicon : 251 self.tbicon.PopupMenu(self.menu) 253 try : 254 self.tbicon.PopupMenu(self.menu) 255 except AttributeError : 256 pass 252 257 253 258 def OnTaskBarClose(self, event) :