wxPython/wxGlade-0.9.1/widgets/spin_button/spin_button.py
def xml_builder(attrs, parent, sizer, sizeritem, pos=None):
    "factory function to build EditSpinButton objects from a XML file"
    from xml_parse import XmlParsingError
    try:
        name = attrs['name']
    except KeyError:
        raise XmlParsingError(_("'name' attribute missing"))
    if sizer is None or sizeritem is None:
        raise XmlParsingError(_("sizer or sizeritem object cannot be None"))
    text = EditSpinButton(name, parent, wx.NewId(), sizer, pos)
    #sizer.set_item(text.pos, proportion=sizeritem.proportion, span=sizeritem.span, flag=sizeritem.flag, border=sizeritem.border)
    node = Node(text)
    text.node = node
    if pos is None:
        common.app_tree.add(node, sizer.node)
    else:
        common.app_tree.insert(node, sizer.node, pos-1)
    return text
factory function to build EditSpinButton objects from a XML file
factory function to build EditSpinButton objects from a XML file
factory function to build EditSpinButton objects from a XML file
def xml_builder(attrs, parent, sizer, sizeritem, pos=None):
    from xml_parse import XmlParsingError
    try:
        name = attrs['name']
    except KeyError:
        raise XmlParsingError(_("'name' attribute missing"))
    if sizer is None or sizeritem is None:
        raise XmlParsingError(_("sizer or sizeritem object cannot be None"))
    text = EditSpinButton(name, parent, wx.NewId(), sizer, pos)
    node = Node(text)
    text.node = node
    if pos is None:
        common.app_tree.add(node, sizer.node)
    else:
        common.app_tree.insert(node, sizer.node, pos-1)
    return text
def xml_builder ( attrs , parent , sizer , sizeritem , pos = None ) : from xml_parse import XmlParsingError try : name = attrs [ 'name' ] except KeyError : raise XmlParsingError ( _ ( "'name' attribute missing" ) ) if sizer is None or sizeritem is None : raise XmlParsingError ( _ ( "sizer or sizeritem object cannot be None" ) ) text = EditSpinButton ( name , parent , wx . NewId ( ) , sizer , pos ) node = Node ( text ) text . node = node if pos is None : common . app_tree . add ( node , sizer . node ) else : common . app_tree . insert ( node , sizer . node , pos - 1 ) return text
factory function to build EditSpinButton objects from a XML file
factory function to build EditSpinButton objects from a XML file
"factory function to build EditSpinButton objects from a XML file" #sizer.set_item(text.pos, proportion=sizeritem.proportion, span=sizeritem.span, flag=sizeritem.flag, border=sizeritem.border)
attrs
parent
sizer
sizeritem
pos