def onRefreshButtonClicked(self, widget): """ Callback for refreshing the current selected server """ selection = self.serverlist.serverlistview.get_selection() model, paths = selection.get_selected_rows() if paths: row = model[paths[0][0]] server = row[8] guicontroller = GuiController() guicontroller.setDetailServer(server, self)
def onRefreshButtonClicked(self, widget): """ Callback for refreshing the current selected server """ selection = self.serverlist.serverlistview.get_selection() model, paths = selection.get_selected_rows() if paths: row = model[paths[0][0]] server = row[8] guicontroller = GuiController() guicontroller.setDetailServer(server, self)
def onSelectionChanged(self, selection): """ Callback handling the selection of a row in the serverlist. Triggers updating the serverdetails area of the parent tab. """ model, paths = selection.get_selected_rows() if paths: row = model[paths[0][0]] server = row[9] guicontroller = GuiController() guicontroller.setDetailServer(server, self.parenttab)
def onSelectionChanged(self, selection): """ Callback handling the selection of a row in the serverlist. Triggers updating the serverdetails area of the parent tab. """ model, paths = selection.get_selected_rows() if paths: row = model[paths[0][0]] server = row[8] guicontroller = GuiController() guicontroller.setDetailServer(server, self.parenttab)
def refresh(self): """ refresh of the serverdetails view of the currently active tab of the currently selected server """ #get the current tab pagenum = self.notebook.get_current_page() tab = self.notebook.get_nth_page(pagenum) selection = tab.serverlist.serverlistview.get_selection() model, paths = selection.get_selected_rows() if paths: row = model[paths[0][0]] server = row[8] guicontroller = GuiController() guicontroller.setDetailServer(server, tab)
def refresh(self): """ refresh of the serverdetails view of the currently active tab of the currently selected server """ #get the current tab pagenum = self.notebook.get_current_page() tab = self.notebook.get_nth_page(pagenum) selection = tab.serverlist.serverlistview.get_selection() model, paths = selection.get_selected_rows() if paths: row = model[paths[0][0]] server = row[8] guicontroller = GuiController() guicontroller.setDetailServer(server, tab)