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

def Nagstamon::nagstamonGUI::StatusBar::Clicked (   self,
  widget = None,
  event = None 
)

    see what happens if statusbar is clicked

Definition at line 772 of file nagstamonGUI.py.

00772                                               :
        """
            see what happens if statusbar is clicked
        """
        # check if settings ar not already open
        if self.output.SettingsDialogOpen == False:
            # if left mousebutton is pressed
            if event.button == 1:
                # if popping up on click is true...
                if str(self.conf.popup_details_clicking) == "True":
                    #... and summary popup not shown yet...
                    if self.output.popwin.get_properties("visible")[0] == False:
                        #...show it...
                        self.output.popwin.PopUp()
                    else:
                        #...otherwise close it
                        self.output.popwin.Close()
                # if hovering is set, popwin is open and statusbar gets clicked...
                else:
                    # close popwin for convinience
                    if self.output.popwin.get_properties("visible")[0] == True:
                        self.output.popwin.Close()
            # if right mousebutton is pressed show statusbar menu
            if event.button == 3:
                self.output.popwin.Close()
                self.Menu.popup(None, None, None, event.button, event.time)
        
        # switch off Notification    
        self.output.NotificationOff()
            

    def LogoClicked(self, widget=None, event=None):


Generated by  Doxygen 1.6.0   Back to index