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

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

    see what happens if statusbar is clicked

Definition at line 803 of file nagstamonGUI.py.

00803                                                   :
        """
            see what happens if statusbar is clicked
        """
        # get position of statusbar
        self.StatusBar.x = event.x
        self.StatusBar.y = event.y
        # if left mousebutton is pressed
        if event == 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)
            
            
    def SysTrayClicked(self, widget=None, event=None):


Generated by  Doxygen 1.6.0   Back to index