DearPyGui icon indicating copy to clipboard operation
DearPyGui copied to clipboard

dpg. window Adaptive height width

Open monkeycc opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. 1. dpg. window height Can I adapt height

How to get the screen height and width 14001050 15601440 3840*2460

How to achieve dpg. window Adaptive height width

Additional context

import dearpygui.dearpygui as dpg

dpg.create_context()

with dpg.window(label="Example Window",height= ):
    dpg.add_text("Hello, world")
    dpg.add_button(label="Save")
    dpg.add_input_text(label="string", default_value="Quick brown fox")
    dpg.add_slider_float(label="float", default_value=0.273, max_value=1)

dpg.create_viewport(title='Custom Title', width=600, height=800)
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
微信截图_20220514171236 微信截图_20220514184058

monkeycc avatar May 14 '22 09:05 monkeycc