def GetNewGroupName(self): import uiutil return uiutil.AskName( localization.GetByLabel( '/Carbon/UI/Controls/ScrollEntries/TypeInNewName'), localization.GetByLabel( '/Carbon/UI/Controls/ScrollEntries/TypeInNewFolderName'))
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