def _save(self): #Save base object's settings saveval = userarea._save(self) #Save this areas settings saveval['minrect'] = self._minrect if self._menuslide == None: saveval['menuslide'] = None else: #Replace menuslide with it's name saveval['menuslide'] = self._menuslide.getname() #Return saved state return saveval
def _save(self): #Save base object's settings saveval = userarea._save(self) #Save this areas settings saveval['bgfile'] = self._bgfile saveval['bgdatfile'] = self._bgdatfile saveval['bgencyption'] = self._bgencyption saveval['hidealpha'] = self._hidealpha saveval['showalpha'] = self._showalpha saveval['mouseoveralpha'] = self._mouseoveralpha if self._itemlist == []: saveval['itemlist'] = [] else: #Replace items with thier names tmpitemlist = [] for curitem in self._itemlist: tmpitemlist.append(curitem.getname()) saveval['itemlist'] = tmpitemlist #Return saved state return saveval