def __Open(self, charafile=None): if (charafile == None): charafile = self.charafile self.charafile = charafile charas = charas_format.CharasFormat() charas.load(charafile) return charas
def __Open(self, charafile=None): if (charafile == None): charafile = self.charafile self.charafile = charafile charas = charas_format.CharasFormat() charas.load(charafile) self.charalist.setList(charas.jsonTree["Charas"])
def getCharas(self): self.charaslistSelectionChanged() charas = charas_format.CharasFormat() for itemIndex in range(self.charaslist.count()): charaname = str(self.charaslist.item(itemIndex).aname) jt = self.charaslist.item(itemIndex).jsonTree charas.addChara(charaname, jt["charaset"], jt["actions"], jt["movements"], jt["properties"]) return charas