When ti.init(...) is called (with no window setup), it unexpectedly changes appearance of a GUI program on a 4K screen, making everything smaller (no HiDPI scaling?).
Edit: the issue happens only on Windows. On Linux (Mint), DearPyGUI seems to ignore HiDPI scaling, so the effect of ti.init(...) is not visible.
Correct appearance, without calling ti.init(...)
Wrong appearance, after calling ti.init(...)
import dearpygui.dearpygui as dpg
import taichi as ti
# If uncommented, this line makes DearPyGUI smaller (no HiDPI scaling (?))
# ti.init(arch=ti.vulkan)
dpg.create_context()
dpg.create_viewport(title='Custom Title', width=400, height=300)
with dpg.window(label="Example Window"):
dpg.add_text("Hello, world")
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
Motivation
Since taichi's GUI does not satisfy my needs (no advanced widgets, such as charts), I attempted to use an external GUI (AFAIK most starred pythong GUI framework), however found it difficult to integrate them in a single app.
Thank you for developing great software π
When
ti.init(...)
is called (with no window setup), it unexpectedly changes appearance of a GUI program on a 4K screen, making everything smaller (no HiDPI scaling?).Edit: the issue happens only on Windows. On Linux (Mint), DearPyGUI seems to ignore HiDPI scaling, so the effect of
ti.init(...)
is not visible.Correct appearance, without calling
ti.init(...)
Wrong appearance, after calling
ti.init(...)
Motivation Since taichi's GUI does not satisfy my needs (no advanced widgets, such as charts), I attempted to use an external GUI (AFAIK most starred pythong GUI framework), however found it difficult to integrate them in a single app.