Ejemplo n.º 1
0
        dpg.log_debug("start")
        thread_floaty = threading.Thread(target=produce_frame, args=())
        thread_floaty.setDaemon(True)
        thread_floaty.start()
        print(id(thread_floaty))

    else:
        print(id(thread_floaty))
        running=False
        thread_floaty.join()
        dpg.log_debug("stop")
        thread_floaty = None
    with sdpg.window():
        dpg.add_drawing('drawing', width=1000, height=800)
        dpg.add_text("tooltipTest")


with sdpg.window("Main Window"):
    # dpg.set_main_window_size(1400, 800)
    dpg.set_main_window_title("Pixel selector")
    # dpg.add_
    dpg.add_button("camera##1", callback=camera_frame_control, tip="this will not a freeze the GUI")





dpg.show_logger()
do.show_demo ()
dpg.start_dearpygui()
Ejemplo n.º 2
0
                dpg.add_menu_item(label='historical period', callback=lambda: nodes.add_history(node_editor_id))
                dpg.add_menu_item(label='rolling mean', callback=lambda: nodes.add_rolling_mean(node_editor_id))
                dpg.add_menu_item(label='distance', callback=lambda: nodes.add_distance(node_editor_id))
                dpg.add_menu_item(label='rlines', callback=lambda: nodes.add_rlines(node_editor_id))

        nodes.add_symbol(node_editor_id)
        nodes.add_current_price(node_editor_id)
        nodes.add_history(node_editor_id)
        nodes.add_rlines(node_editor_id)


with dpg.window(label='Main', no_title_bar=True):
    core.set_primary_window(dpg.last_item(), True)
    with dpg.menu_bar():
        with dpg.menu(label="File"):
            dpg.add_menu_item(label="show dpg demo", callback=lambda: show_demo())
            dpg.add_menu_item(label="show dpg doc", callback=lambda: dpg.show_documentation())
    with dpg.group():
        main_parent = dpg.last_item()
        # menu bar
        # main
        with dpg.group(horizontal=True):
            with dpg.child(label='column_0', width=150, height=500):
                _candle_indicators()
            with dpg.child(label='column_1', width=700, height=500, payload_type='main_window',
                           drop_callback=_ticker_drop):
                window_data.main_window_title = dpg.add_text('Ticker: ')
                # dpg.add_button(label='Period')
                # with dpg.popup(dpg.last_item(), modal=True, mousebutton=dpg.mvMouseButton_Left) as modal_id:
                #     period_start = ''
                #     dpg.add_date_picker(level=dpg.mvDatePickerLevel_Day,
Ejemplo n.º 3
0
import dearpygui.dearpygui as dpg
import dearpygui.demo as demo

dpg.setup_registries()

with dpg.font("../../Resources/NotoSerifCJKjp-Medium.otf", 20, default_font=True):
    dpg.add_font_range_hint(dpg.mvFontRangeHint_Default)

demo.show_demo()

dpg.start_dearpygui()
Ejemplo n.º 4
0
import dearpygui.dearpygui as dpg
from dearpygui.demo import show_demo
show_demo()
dpg.start_dearpygui()