Exemplo n.º 1
0
def update_all(gui):

    # update all collections of widget groups
    dyngui.update_collection(gui.atmos_collection, gui.atmos_list, aux.func_arg(atmos, gui))
    dyngui.update_collection(gui.galactic_collection, gui.galactic_list, aux.func_arg(galactic, gui))
    dyngui.update_collection(gui.mirror_collection, gui.mirror_list, aux.func_arg(mirror, gui))
    dyngui.update_collection(gui.zodiac_collection, gui.zodiac_list, aux.func_arg(zodiac, gui))
    dyngui.update_collection(gui.signal_collection, gui.signal_list, aux.func_arg(signal, gui))
    dyngui.update_tabcollect(gui.compos_collection, gui.compos_tabs, aux.func_arg(compos, gui))

    # update composite tab
    for group in gui.compos_collection:
        dyngui.update_list(group.inputs["n_atmos"].widget, gui.atmos_collection)
        dyngui.update_list(group.inputs["n_galactic"].widget, gui.galactic_collection)
        dyngui.update_list(group.inputs["n_mirror"].widget, gui.mirror_collection)
        dyngui.update_list(group.inputs["n_zodiac"].widget, gui.zodiac_collection)
        dyngui.update_list(group.inputs["signal"].widget, gui.signal_collection)

    # mark that project has been edited since last save
    gui.changed = True
Exemplo n.º 2
0
def conn_changed(gui, widget, sig):
    QtCore.QObject.connect(widget, QtCore.SIGNAL(sig), aux.func_arg(changed, gui))
Exemplo n.º 3
0
def conn_update(gui, widget, sig):
    QtCore.QObject.connect(widget, QtCore.SIGNAL(sig), aux.func_arg(update_all, gui))