Skip to content

armgit / BUI

Public Imported from GitHub
0

Blender's GPU Accelerated UI, Decoupled from it's original codebase. Supports Rust, Python, JS, React, C & C++. Twice as good as GPUI

test(tkinter): keep hidpi fit dialog within small screens

Krish Kalariaf79584ad4393
diff --git a/bindings/python/tests/test_tk_compat.py b/bindings/python/tests/test_tk_compat.py
index 1f1722c..d65a9b1 100644
--- a/bindings/python/tests/test_tk_compat.py
+++ b/bindings/python/tests/test_tk_compat.py
@@ -568,8 +568,8 @@ if host.native_available():
Listbox(root, height=5).pack()
root.update()
top = Toplevel(root)
- for _ in range(4): # larger than the dialog's minimum size
- Label(top, text="wider than the minimum " * 5).pack()
+ for _ in range(4): # larger than the dialog's minimum size, smaller than a small screen
+ Label(top, text="wider than the minimum " * 3).pack()
simpledialog._place_window(top)
root.update()
for win in (root, top):