Changeset 128 for pykoticon

Show
Ignore:
Timestamp:
05/01/06 19:58:00 (19 years ago)
Author:
jerome
Message:

No message when quit is forbidden, otherwise we would have it on
session close.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykoticon/trunk/bin/pykoticon

    r127 r128  
    238238        self.TBMENU_CLOSE = wx.NewId() 
    239239        wx.EVT_MENU(self.tbicon, self.TBMENU_ABOUT, \ 
    240                                           self.OnAbout) 
     240                                 self.OnAbout) 
    241241        wx.EVT_MENU(self.tbicon, self.TBMENU_RESTORE, \ 
    242                                           self.OnTaskBarActivate) 
     242                                 self.OnTaskBarActivate) 
    243243        wx.EVT_MENU(self.tbicon, self.TBMENU_CLOSE, \ 
    244                                           self.OnTaskBarClose) 
     244                                 self.OnTaskBarClose) 
    245245        self.menu = wx.Menu() 
    246246        self.menu.Append(self.TBMENU_ABOUT, _("About")) 
     
    302302    def quitIsForbidden(self) :         
    303303        """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 
    310311         
    311312    def OnAbout(self, event) :     
    312313        """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) 
    314317        dialog.ShowModal() 
    315318        dialog.Destroy()