wxPython/wxGlade-0.9.1/widgets/splitter_window/splitter_window.py
def xml_builder(attrs, parent, sizer, sizeritem, pos=None):
    "Factory to build editor 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"))
    widget = editor_class(name, parent, wx.NewId(), None, None, editor_style, sizer, pos)
    #sizer.set_item(widget.pos, proportion=sizeritem.proportion, span=sizeritem.span, flag=sizeritem.flag, border=sizeritem.border)
    node = Node(widget)
    widget.node = node
    widget.virtual_sizer.node = node

    if pos is None:
        common.app_tree.add(node, sizer.node)
    else:
        common.app_tree.insert(node, sizer.node, pos-1)

    node2 = SlotNode(widget._window_1)
    widget._window_1.node = node2
    common.app_tree.add(node2, widget.node)

    node3 = SlotNode(widget._window_2)
    widget._window_2.node = node3
    common.app_tree.add(node3, widget.node)

    return widget
Factory to build editor objects from a XML file
Factory to build editor objects from a XML file
Factory to build editor 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"))
    widget = editor_class(name, parent, wx.NewId(), None, None, editor_style, sizer, pos)
    node = Node(widget)
    widget.node = node
    widget.virtual_sizer.node = node
    if pos is None:
        common.app_tree.add(node, sizer.node)
    else:
        common.app_tree.insert(node, sizer.node, pos-1)
    node2 = SlotNode(widget._window_1)
    widget._window_1.node = node2
    common.app_tree.add(node2, widget.node)
    node3 = SlotNode(widget._window_2)
    widget._window_2.node = node3
    common.app_tree.add(node3, widget.node)
    return widget
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" ) ) widget = editor_class ( name , parent , wx . NewId ( ) , None , None , editor_style , sizer , pos ) node = Node ( widget ) widget . node = node widget . virtual_sizer . node = node if pos is None : common . app_tree . add ( node , sizer . node ) else : common . app_tree . insert ( node , sizer . node , pos - 1 ) node2 = SlotNode ( widget . _window_1 ) widget . _window_1 . node = node2 common . app_tree . add ( node2 , widget . node ) node3 = SlotNode ( widget . _window_2 ) widget . _window_2 . node = node3 common . app_tree . add ( node3 , widget . node ) return widget
Factory to build editor objects from a XML file
Factory to build editor objects from a XML file
"Factory to build editor objects from a XML file" #sizer.set_item(widget.pos, proportion=sizeritem.proportion, span=sizeritem.span, flag=sizeritem.flag, border=sizeritem.border)
attrs
parent
sizer
sizeritem
pos