예제 #1
0
파일: helpers.py 프로젝트: rguter/glue
 def rename_tab(self, index=None):
     """ Prompt user to rename a tab
     :param index: integer. Index of tab to edit. Defaults to current index
     """
     index = index or self.currentIndex()
     label = get_text("New Tab Label")
     if not label:
         return
     self.setTabText(index, label)
예제 #2
0
파일: helpers.py 프로젝트: robintw/glue
 def rename_tab(self, index=None):
     """ Prompt user to rename a tab
     :param index: integer. Index of tab to edit. Defaults to current index
     """
     index = index or self.currentIndex()
     label = get_text("New Tab Label")
     if not label:
         return
     self.setTabText(index, label)
예제 #3
0
    def choose_rename_tab(self, index=None):
        """
        Prompt user to rename a tab

        Parameters
        ----------
        index : int
            Index of tab to edit. Defaults to current index
        """
        index = index or self.currentIndex()
        label = get_text("New Tab Label")
        if not label:
            return
        self.rename_tab(index, label)