예제 #1
0
 def GetNewGroupName(self):
     import uiutil
     return uiutil.AskName(
         localization.GetByLabel(
             '/Carbon/UI/Controls/ScrollEntries/TypeInNewName'),
         localization.GetByLabel(
             '/Carbon/UI/Controls/ScrollEntries/TypeInNewFolderName'))
예제 #2
0
 def AddListGroup(self, listID, listgroupName = None):
     import uiutil
     groupname = uiutil.AskName(localization.GetByLabel('/Carbon/UI/Common/TypeName'), localization.GetByLabel('/Carbon/UI/Common/TypeNameForFolder'))
     if not groupname:
         return
     if isinstance(groupname, dict):
         groupname = groupname['name']
     id = (listID, listgroupName or str(blue.os.GetWallclockTime()))
     group = self.GetListGroup(id)
     group['label'] = groupname
     group['id'] = id
     group['groupItems'] = []
     group['open'] = 0
     return group