示例#1
0
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = Tk()
    support.set_Tk_var()
    top = New_Toplevel(root)
    support.init(root, top)
    root.mainloop()
示例#2
0
def create_New_Toplevel(root, *args, **kwargs):
    '''Starting point when module is imported by another program.'''
    global w, w_win, rt
    rt = root
    w = Toplevel(root)
    support.set_Tk_var()
    top = New_Toplevel(w)
    support.init(w, top, *args, **kwargs)
    return (w, top)
def create_Toplevel(rt, *args, **kwargs):
    '''Starting point when module is imported by another module.
       Correct form of call: 'create_Toplevel1(root, *args, **kwargs)' .'''
    global w, w_win, root
    # rt = root
    root = rt
    w = Toplevel(root)
    support.set_Tk_var()
    top = Toplevel(w)
    support.init(w, top, *args, **kwargs)
    return (w, top)
示例#4
0
文件: wbui.py 项目: wbrxcorp/walbrix
    mainmenu.init()

    status.init()

    volume.init()
    volume.refresh()

    domain.init()
    domain.refresh()

    options.init()
    options.refresh()

    shutdown.init()

    support.init()

    back.init()

    app.init()
    app.refresh()

    mainmenu_items = []
    mainmenu_items.append(
        mainmenu.ListItem(gui.res.icon_status, gui.res.string_status,
                          (status, gui.res.string_status_description)))
    mainmenu_items.append(
        mainmenu.ListItem(gui.res.icon_volume, gui.res.string_volume,
                          (volume, gui.res.string_volume_description)))
    mainmenu_items.append(
        mainmenu.ListItem(gui.res.icon_domain, gui.res.string_domain,
示例#5
0
# ## Extracted from sagenb.all
# from sagenb.notebook.sage_email import email ## included in sage.all
from interact import interact
from interact import input_box
from interact import slider
from interact import range_slider
from interact import selector
from interact import checkbox
from interact import input_grid
from interact import text_control
from interact import color_selector

## For doctesting.
#import sagenb

# ## END sagenb.all

import interact as _interact_  # for setting current cell id

import support as _support_
_support_.init(None, globals())

sage.plot.plot.EMBEDDED_MODE = True
sage.misc.latex.EMBEDDED_MODE = True

try:
    load(os.path.join(os.environ["DOT_SAGE"], "init.sage"), globals())
except (KeyError, IOError):
    pass
示例#6
0
文件: wbui.py 项目: wbrxcorp/walbrix
    mainmenu.init()

    status.init()

    volume.init()
    volume.refresh()

    domain.init()
    domain.refresh()

    options.init()
    options.refresh()

    shutdown.init()

    support.init()

    back.init()

    app.init()
    app.refresh()

    mainmenu_items = []
    mainmenu_items.append(mainmenu.ListItem(gui.res.icon_status, gui.res.string_status, (status,gui.res.string_status_description)))
    mainmenu_items.append(mainmenu.ListItem(gui.res.icon_volume, gui.res.string_volume,(volume,gui.res.string_volume_description)))
    mainmenu_items.append(mainmenu.ListItem(gui.res.icon_domain,gui.res.string_domain, (domain,gui.res.string_domain_description)))
    mainmenu_items.append(mainmenu.ListItem(gui.res.icon_app, gui.res.string_app, (app,gui.res.string_app_description)))
    mainmenu_items.append(mainmenu.ListItem(gui.res.icon_options,gui.res.string_options, (options,gui.res.string_options_description)))
    mainmenu_items.append(mainmenu.ListItem(gui.res.icon_support,gui.res.string_support, (support,gui.res.string_support_description)))

    mainmenu.window.addItems(mainmenu_items)