- Timestamp:
- 05/01/06 19:58:00 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykoticon/trunk/bin/pykoticon
r127 r128 238 238 self.TBMENU_CLOSE = wx.NewId() 239 239 wx.EVT_MENU(self.tbicon, self.TBMENU_ABOUT, \ 240 240 self.OnAbout) 241 241 wx.EVT_MENU(self.tbicon, self.TBMENU_RESTORE, \ 242 242 self.OnTaskBarActivate) 243 243 wx.EVT_MENU(self.tbicon, self.TBMENU_CLOSE, \ 244 244 self.OnTaskBarClose) 245 245 self.menu = wx.Menu() 246 246 self.menu.Append(self.TBMENU_ABOUT, _("About")) … … 302 302 def quitIsForbidden(self) : 303 303 """Displays a message indicating that quitting the application is not allowed.""" 304 message = _("Sorry, this was forbidden by your system administrator.") 305 caption = _("Information") 306 style = wx.OK | wx.ICON_INFORMATION | wx.STAY_ON_TOP 307 dialog = wx.MessageDialog(self, message, caption, style) 308 dialog.ShowModal() 309 dialog.Destroy() 304 #�message = _("Sorry, this was forbidden by your system administrator.") 305 #�caption = _("Information") 306 #�style = wx.OK | wx.ICON_INFORMATION | wx.STAY_ON_TOP 307 # dialog = wx.MessageDialog(self, message, caption, style) 308 # dialog.ShowModal() 309 #�dialog.Destroy() 310 pass 310 311 311 312 def OnAbout(self, event) : 312 313 """Displays the about box.""" 313 dialog = wx.MessageDialog(self, aboutbox % globals(), _("About"), wx.OK | wx.ICON_INFORMATION) 314 dialog = wx.MessageDialog(self, aboutbox % globals(), \ 315 _("About"), \ 316 wx.OK | wx.ICON_INFORMATION) 314 317 dialog.ShowModal() 315 318 dialog.Destroy()