Esempio n. 1
0
def get_widget_box():

    try:
        tab_box = Tab(children=[get_panel.get(), help_docs.widget_box(),
                                settings.main()])

        tab_box.set_title(0, 'Get Data')
        tab_box.set_title(1, 'Help')
        tab_box.set_title(2, 'Settings')

    except Exception as err:
        tab_box = Tab(children=[help_docs.widget_box(),
                                settings.main()])

        tab_box.set_title(0, 'Help')
        tab_box.set_title(1, 'Settings')
        print("Could not show 'Get panel'.", err)

    return tab_box
Esempio n. 2
0
def view_widget_box():

    try:
        tab_box = Tab(children=[
            view_panel.view(),
            help_docs.widget_box(),
            settings.main()
        ])

        tab_box.set_title(0, 'View single parcel')
        tab_box.set_title(1, 'Help')
        tab_box.set_title(2, 'Settings')

    except Exception as err:
        tab_box = Tab(children=[help_docs.widget_box(), settings.main()])

        tab_box.set_title(1, 'Help')
        tab_box.set_title(2, 'Settings')
        print("Could not show 'View panel'.", err)

    return tab_box
Esempio n. 3
0
def qa_widget_box():

    tab_box = Tab(
        children=[qa_panel.qa(),
                  help_docs.widget_box(),
                  settings.main()])

    tab_box.set_title(0, 'Quality assessment')
    tab_box.set_title(1, 'Help')
    tab_box.set_title(2, 'Settings')

    return tab_box
Esempio n. 4
0
def proc_widget_box():

    tab_box = Tab(children=[
        proc_panel.proc(),
        help_docs.widget_box(),
        proc_settings.widget_box()
    ])

    tab_box.set_title(0, 'Process Data')
    tab_box.set_title(1, 'Help')
    tab_box.set_title(2, 'Settings')

    return tab_box
Esempio n. 5
0
def ext_widget_box():

    tab_box = Tab(children=[
        ext_panel.extract(),
        help_docs.widget_box(),
        settings.main()
    ])

    tab_box.set_title(0, 'Extract Data')
    tab_box.set_title(1, 'Help')
    tab_box.set_title(2, 'Settings')

    return tab_box