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

def Nagstamon::nagstamonGUI::Popwin::TreeviewPopupMenu (   self,
  widget,
  event,
  treeview,
  server 
)

    context menu for treeview detailed status items

Definition at line 1322 of file nagstamonGUI.py.

01322                                                                 :
        """
            context menu for treeview detailed status items
        """
        # catch exception in case of clicking outside treeview
        try:
            # get path to clicked cell
            path, obj, x, y = treeview.get_path_at_pos(int(event.x), int(event.y))
            # access content of rendered view model via normal python lists
            self.miserable_server = server
            self.miserable_host = treeview.get_model()[path[0]][0]
            self.miserable_service = treeview.get_model()[path[0]][1]
            # popup the relevant contect menu
            self.popupmenu.popup(None, None, None, event.button, event.time)
        except:
            pass
        

    def TreeviewPopupMenuResponse(self, widget, remoteservice):


Generated by  Doxygen 1.6.0   Back to index