Skip to content

Commit a9e9c58

Browse files
authored
Update threeDapp.py
fixed a dpi issue
1 parent 382a5a4 commit a9e9c58

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/3DExample/threeDapp.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,9 @@ def add_tab():
227227
root = customtkinter.CTk()
228228
root.title("3D Geometry Viewer")
229229
root.geometry("1200x550")
230+
customtkinter.deactivate_automatic_dpi_awareness()
230231
root.resizable(False, False)
231-
sv_ttk.set_theme("dark")
232+
232233
geo = {}
233234
dialog_box = None
234235
global_side_color = "#ffffff"
@@ -259,5 +260,5 @@ def add_tab():
259260
add_tab_button = customtkinter.CTkButton(notebook, width=30, text="+",
260261
bg_color="#2f2f2f", command=add_tab)
261262
add_tab_button.pack(anchor="ne", pady=5, padx=10)
262-
263+
sv_ttk.set_theme("dark")
263264
root.mainloop()

0 commit comments

Comments
 (0)