예제 #1
0
 def toButtonDict(self):
     return {
         'id':self.commandID,
         'column':self.column,
         'row':self.row,
         'categoryID':CommandCategories.getCategoryIDFromIndex(self.categoryfk),
         'label':self.label,
         'info':self.info,
         'icon':self.icon,
         'hasVariants':len(self.variants) > 0
     }
예제 #2
0
 def toDict(self):
     return {
         'id':self.commandID,
         'column':self.column,
         'row':self.row,
         'categoryID':CommandCategories.getCategoryIDFromIndex(self.categoryfk),
         'label':self.label,
         'info':self.info,
         'icon':self.icon,
         'language':self.language,
         'location':self.location,
         'script':self.script,
         'variants':self.variants
     }