wxPython/wxGlade-0.9.1/wcodegen/__init__.py
def _prepare_tmpl_content(self, obj):
        "Prepare and set template variables; obj is instance of L{xml_parse.CodeObject}; returns dict"
        self.tmpl_dict['comment'] = self.codegen.comment_sign
        self.tmpl_dict['tab'] = self.codegen.tabs(1)
        self.tmpl_dict['store_as_attr'] = self.codegen.store_as_attr(obj)
        self.tmpl_dict['id_name'], self.tmpl_dict['id_number'] = self.codegen.generate_code_id(obj)
        self.tmpl_dict['id'] = self.tmpl_dict['id_number']
        self.tmpl_dict['obj_name'] = self.codegen._format_name(obj.name)

        klass = obj.klass
        if klass == obj.base:
            klass = self.cn(klass)
        else:
            klass = self.cn_class(klass)
        self.tmpl_dict['klass'] = klass

        self.tmpl_dict['store_as_attr'] = self.codegen.store_as_attr(obj)

        if obj.check_prop('style'): self.tmpl_dict['style'] = self._prepare_style(obj.properties["style"])
        if obj.check_prop('label'):
            self.tmpl_dict['label'] = self.codegen.quote_str( obj.label )
        if obj.check_prop('value'): self.tmpl_dict['value'] = self.codegen.quote_str( compat.unicode(obj.value) )
        if obj.check_prop('value_unquoted'): self.tmpl_dict['value_unquoted'] = obj.value

        return
Prepare and set template variables; obj is instance of L{xml_parse.CodeObject}; returns dict
Prepare and set template variables; obj is instance of L{xml_parse.CodeObject}; returns dict
Prepare and set template variables ; obj is instance of L { xml_parse . CodeObject } ; returns dict
def _prepare_tmpl_content(self, obj):
        self.tmpl_dict['comment'] = self.codegen.comment_sign
        self.tmpl_dict['tab'] = self.codegen.tabs(1)
        self.tmpl_dict['store_as_attr'] = self.codegen.store_as_attr(obj)
        self.tmpl_dict['id_name'], self.tmpl_dict['id_number'] = self.codegen.generate_code_id(obj)
        self.tmpl_dict['id'] = self.tmpl_dict['id_number']
        self.tmpl_dict['obj_name'] = self.codegen._format_name(obj.name)
        klass = obj.klass
        if klass == obj.base:
            klass = self.cn(klass)
        else:
            klass = self.cn_class(klass)
        self.tmpl_dict['klass'] = klass
        self.tmpl_dict['store_as_attr'] = self.codegen.store_as_attr(obj)
        if obj.check_prop('style'): self.tmpl_dict['style'] = self._prepare_style(obj.properties["style"])
        if obj.check_prop('label'):
            self.tmpl_dict['label'] = self.codegen.quote_str( obj.label )
        if obj.check_prop('value'): self.tmpl_dict['value'] = self.codegen.quote_str( compat.unicode(obj.value) )
        if obj.check_prop('value_unquoted'): self.tmpl_dict['value_unquoted'] = obj.value
        return
def _prepare_tmpl_content ( self , obj ) : self . tmpl_dict [ 'comment' ] = self . codegen . comment_sign self . tmpl_dict [ 'tab' ] = self . codegen . tabs ( 1 ) self . tmpl_dict [ 'store_as_attr' ] = self . codegen . store_as_attr ( obj ) self . tmpl_dict [ 'id_name' ] , self . tmpl_dict [ 'id_number' ] = self . codegen . generate_code_id ( obj ) self . tmpl_dict [ 'id' ] = self . tmpl_dict [ 'id_number' ] self . tmpl_dict [ 'obj_name' ] = self . codegen . _format_name ( obj . name ) klass = obj . klass if klass == obj . base : klass = self . cn ( klass ) else : klass = self . cn_class ( klass ) self . tmpl_dict [ 'klass' ] = klass self . tmpl_dict [ 'store_as_attr' ] = self . codegen . store_as_attr ( obj ) if obj . check_prop ( 'style' ) : self . tmpl_dict [ 'style' ] = self . _prepare_style ( obj . properties [ "style" ] ) if obj . check_prop ( 'label' ) : self . tmpl_dict [ 'label' ] = self . codegen . quote_str ( obj . label ) if obj . check_prop ( 'value' ) : self . tmpl_dict [ 'value' ] = self . codegen . quote_str ( compat . unicode ( obj . value ) ) if obj . check_prop ( 'value_unquoted' ) : self . tmpl_dict [ 'value_unquoted' ] = obj . value return
Prepare and set template variables; obj is instance of L{xml_parse.CodeObject}; returns dict
Prepare and set template variables ; obj is instance of L { xml_parse . CodeObject } ; returns dict
"Prepare and set template variables; obj is instance of L{xml_parse.CodeObject}; returns dict"
self
obj