Exemplo n.º 1
0
 def GetTabName(self):
     """タブコントロールに表示する名前"""
     word = self.listObject.rootDirectory.split("\\")
     word = word[len(word) - 1]
     word = StringUtil.GetLimitedString(
         word, globalVars.app.config["view"]["header_title_length"])
     return word
Exemplo n.º 2
0
 def GetTabName(self):
     """タブコントロールに表示する名前"""
     word = self.listObject.GetKeywordString()
     word = StringUtil.GetLimitedString(
         word, globalVars.app.config["view"]["header_title_length"])
     word = _("%(word)sの検索") % {"word": word}
     return word
Exemplo n.º 3
0
 def GetTabName(self):
     """タブコントロールに表示する名前"""
     word = os.path.basename(self.listObject.rootDirectory)
     if word == "":  # ルート
         word = self.listObject.rootDirectory
     word = StringUtil.GetLimitedString(
         word, globalVars.app.config["view"]["header_title_length"])
     return word
Exemplo n.º 4
0
 def GetTabName(self):
     """タブコントロールに表示する名前"""
     word = "ほにゃぺけからほにゃぺけへの貼り付け"
     word = StringUtil.GetLimitedString(
         word, globalVars.app.config["view"]["header_title_length"])
     return word