Logo Search packages:      
Sourcecode: viridian version File versions  Download package

def AmpacheTools::AmpacheGUI::AmpacheGUI::delete_event (   self,
  widget,
  event,
  data = None 
)
Keep the window alive when it is X'd out.

Definition at line 104 of file AmpacheGUI.py.

                                                      :
            """Keep the window alive when it is X'd out."""
            if not hasattr(self, 'tray_icon') or self.quit_when_window_closed: # no tray icon set, must destroy
                  self.destroy()
            else: # don't quit, just hide
                  if self.first_time_closing:
                        self.main_gui_toggle_hidden()
                        self.create_dialog_alert("info", _("Viridian is still running in the status bar.  If you do not want Viridian to continue running when the window is closed you can disable it in Preferences."), True)
                        self.first_time_closing = False
                        self.db_session.variable_set('first_time_closing', False)
                  else: 
                        self.main_gui_toggle_hidden()
            return True


Generated by  Doxygen 1.6.0   Back to index