You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that call to ctypes.windll.shcore.SetProcessDpiAwareness(2) breaks scaling in dearpygui https://github.com/hoffstadt/DearPyGui, see this example (dearpygui 1.8.0) and calling ctypes.windll.shcore.SetProcessDpiAwareness(0) won't help:
import ctypes
import dearpygui.dearpygui as dpg
from screeninfo import screeninfo
dpg.create_context()
dpg.create_viewport(title='Custom Title', width=600, height=300, decorated=False)
with dpg.window(label="Example Window"):
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)
# calling either of
# screeninfo.get_monitors()
# or
# ctypes.windll.shcore.SetProcessDpiAwareness(2)
# inevitably changes viewport scale
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
The text was updated successfully, but these errors were encountered:
It seems that call to ctypes.windll.shcore.SetProcessDpiAwareness(2) breaks scaling in dearpygui https://github.com/hoffstadt/DearPyGui, see this example (dearpygui 1.8.0) and calling ctypes.windll.shcore.SetProcessDpiAwareness(0) won't help:
The text was updated successfully, but these errors were encountered: