def fromDict(self, item):
     try:
         MobileFormItem.fromDict(self, item)
         self.__values = list()
         self.setValue(item.get("value"))
         items = item.get("values").get("items")
         for value in items:
             self.__values.append(str(value.get("item")))
     except:
         print "Can't get values from stringcombo: ", repr(item)
         print sys.exc_info()[1]
Example #2
0
    def fromDict(self, rawitem):
        try:
            MobileFormItem.fromDict(self, rawitem)
            self.__availableValues = list()
            rawitems = rawitem.get("values")
            for rawvalue, rawsubitems in rawitems.items():
                item = ItemWithSubitems(rawvalue)
                for x in rawsubitems:
                    item.append(x["item"])
                self.__availableValues.append(item)
            self.__selectedValue = rawitem["value"]

        except:
            print "Can't get values from connectedstringcombo: ", repr(rawitem)
            print sys.exc_info()[1]
Example #3
0
 def fromDict(self, item):
     MobileFormItem.fromDict(self, item)
     self.setValue(item.get("value"))
 def fromDict(self, item):
     MobileFormItem.fromDict(self, item)
 def fromDict(self, item):
     MobileFormItem.fromDict(self, item)
     self.setValue(item.get("value", ""))
     self.setSize(item.get("size", 20))
     self.setSize(item.get("url", ""))