wxPython/wxGlade-0.9.1/codegen/__init__.py
def store_as_attr(self, obj):
        """Returns True if 'obj' should be added as an attribute of its parent's class,
        False if it should be created as a local variable of C{__do_layout}.
        
        The function returns True of the object klass is listed in L{classattr_always}.

        The function returns True for all widgets except sizers, if
         - the property exists and is an integer greater equal 1
         - the property does not exists
         - the property contains a non-integer value

        The function returns True for sizers, if
         - the property exists and is an integer greater equal 1

        @see: L{classattr_always}
        """
        if obj.klass in self.classattr_always:
            return True
        if 'attribute' in obj.properties:
            return obj.attribute

        if obj.is_sizer:
            return False
        if obj.classname in ("wxStaticText","wxHyperlinkCtrl","wxStaticBitmap","wxStaticLine"):
            return False
        return True
Returns True if 'obj' should be added as an attribute of its parent's class,
        False if it should be created as a local variable of C{__do_layout}.
        
        The function returns True of the object klass is listed in L{classattr_always}.

        The function returns True for all widgets except sizers, if
         - the property exists and is an integer greater equal 1
         - the property does not exists
         - the property contains a non-integer value

        The function returns True for sizers, if
         - the property exists and is an integer greater equal 1

        @see: L{classattr_always}
        
Returns True if 'obj' should be added as an attribute of its parent's class,
False if it should be created as a local variable of C{__do_layout}.

The function returns True of the object klass is listed in L{classattr_always}.

The function returns True for all widgets except sizers, if
the property exists and is an integer greater equal 1
the property does not exists
the property contains a non-integer value

The function returns True for sizers, if
the property exists and is an integer greater equal 1
Returns True if ' obj ' should be added as an attribute of its parent ' s class False if it should be created as a local variable of C { __do_layout } . The function returns True of the object klass is listed in L { classattr_always } . The function returns True for all widgets except sizers if the property exists and is an integer greater equal 1 the property does not exists the property contains a non - integer value The function returns True for sizers if the property exists and is an integer greater equal 1
def store_as_attr(self, obj):
        if obj.klass in self.classattr_always:
            return True
        if 'attribute' in obj.properties:
            return obj.attribute
        if obj.is_sizer:
            return False
        if obj.classname in ("wxStaticText","wxHyperlinkCtrl","wxStaticBitmap","wxStaticLine"):
            return False
        return True
def store_as_attr ( self , obj ) : if obj . klass in self . classattr_always : return True if 'attribute' in obj . properties : return obj . attribute if obj . is_sizer : return False if obj . classname in ( "wxStaticText" , "wxHyperlinkCtrl" , "wxStaticBitmap" , "wxStaticLine" ) : return False return True
Returns True if 'obj' should be added as an attribute of its parent's class,
False if it should be created as a local variable of C{__do_layout}.
Returns True if ' obj ' should be added as an attribute of its parent ' s class False if it should be created as a local variable of C { __do_layout } .
"""Returns True if 'obj' should be added as an attribute of its parent's class,
        False if it should be created as a local variable of C{__do_layout}.
        
        The function returns True of the object klass is listed in L{classattr_always}.

        The function returns True for all widgets except sizers, if
         - the property exists and is an integer greater equal 1
         - the property does not exists
         - the property contains a non-integer value

        The function returns True for sizers, if
         - the property exists and is an integer greater equal 1

        @see: L{classattr_always}
        """
self
obj
see
None