wxPython/wxGlade-0.9.1/codegen/__init__.py
def generate_code_extraproperties(self, obj):
        "Returns a list of code fragments that set extra properties for the given object"
        tmpl = self._get_code_statement('extraproperties')
        if not tmpl:
            return []
        objname = self.format_generic_access(obj)

        ret = []
        for name, value in sorted(obj.extraproperties):
            name_cap = name[0].upper() + name[1:]
            stmt = tmpl % { 'klass': self.cn_class(obj.klass), 'objname': objname, 'propname': name,
                            'propname_cap': name_cap, 'value': value }
            ret.append(stmt)
        return ret
Returns a list of code fragments that set extra properties for the given object
Returns a list of code fragments that set extra properties for the given object
Returns a list of code fragments that set extra properties for the given object
def generate_code_extraproperties(self, obj):
        tmpl = self._get_code_statement('extraproperties')
        if not tmpl:
            return []
        objname = self.format_generic_access(obj)
        ret = []
        for name, value in sorted(obj.extraproperties):
            name_cap = name[0].upper() + name[1:]
            stmt = tmpl % { 'klass': self.cn_class(obj.klass), 'objname': objname, 'propname': name,
                            'propname_cap': name_cap, 'value': value }
            ret.append(stmt)
        return ret
def generate_code_extraproperties ( self , obj ) : tmpl = self . _get_code_statement ( 'extraproperties' ) if not tmpl : return [ ] objname = self . format_generic_access ( obj ) ret = [ ] for name , value in sorted ( obj . extraproperties ) : name_cap = name [ 0 ] . upper ( ) + name [ 1 : ] stmt = tmpl % { 'klass' : self . cn_class ( obj . klass ) , 'objname' : objname , 'propname' : name , 'propname_cap' : name_cap , 'value' : value } ret . append ( stmt ) return ret
Returns a list of code fragments that set extra properties for the given object
Returns a list of code fragments that set extra properties for the given object
"Returns a list of code fragments that set extra properties for the given object"
self
obj