wxPython/wxGlade-0.9.1/widgets/slider/slider.py
def builder(parent, sizer, pos, number=[1]):
    "factory function for editor objects from GUI"
    dialog = wcodegen.WidgetStyleSelectionDialog( dlg_title, box_title, choices )
    res = dialog.ShowModal()
    style = dialog.get_selection()
    dialog.Destroy()
    if res != wx.ID_OK:
        return

    label = '%s_%d' % (tmpl_label, number[0])
    while common.app_tree.has_name(label):
        number[0] += 1
        label = '%s_%d' % (tmpl_label, number[0])
    with parent.frozen():
        widget = editor_class(label, parent, wx.ID_ANY, style, sizer, pos)
        node = Node(widget)
        widget.node = node
        widget.properties["flag"].set("wxEXPAND")
        if parent.widget: widget.create()
    common.app_tree.insert(node, sizer.node, pos-1)
factory function for editor objects from GUI
factory function for editor objects from GUI
factory function for editor objects from GUI
def builder(parent, sizer, pos, number=[1]):
    dialog = wcodegen.WidgetStyleSelectionDialog( dlg_title, box_title, choices )
    res = dialog.ShowModal()
    style = dialog.get_selection()
    dialog.Destroy()
    if res != wx.ID_OK:
        return
    label = '%s_%d' % (tmpl_label, number[0])
    while common.app_tree.has_name(label):
        number[0] += 1
        label = '%s_%d' % (tmpl_label, number[0])
    with parent.frozen():
        widget = editor_class(label, parent, wx.ID_ANY, style, sizer, pos)
        node = Node(widget)
        widget.node = node
        widget.properties["flag"].set("wxEXPAND")
        if parent.widget: widget.create()
    common.app_tree.insert(node, sizer.node, pos-1)
def builder ( parent , sizer , pos , number = [ 1 ] ) : dialog = wcodegen . WidgetStyleSelectionDialog ( dlg_title , box_title , choices ) res = dialog . ShowModal ( ) style = dialog . get_selection ( ) dialog . Destroy ( ) if res != wx . ID_OK : return label = '%s_%d' % ( tmpl_label , number [ 0 ] ) while common . app_tree . has_name ( label ) : number [ 0 ] += 1 label = '%s_%d' % ( tmpl_label , number [ 0 ] ) with parent . frozen ( ) : widget = editor_class ( label , parent , wx . ID_ANY , style , sizer , pos ) node = Node ( widget ) widget . node = node widget . properties [ "flag" ] . set ( "wxEXPAND" ) if parent . widget : widget . create ( ) common . app_tree . insert ( node , sizer . node , pos - 1 )
factory function for editor objects from GUI
factory function for editor objects from GUI
"factory function for editor objects from GUI"
parent
sizer
pos
number