restructured imports from modules, created imports in __init__.py

This commit is contained in:
Tom Schimansky
2022-11-29 19:06:33 +01:00
parent 1254a39161
commit 03249110f3
38 changed files with 226 additions and 186 deletions

View File

@ -62,15 +62,15 @@ class TestCTk():
customtkinter.ScalingTracker.set_window_scaling(1.5)
self.root_ctk.geometry("300x400")
assert self.root_ctk.current_width == 300 and self.root_ctk.current_height == 400
assert self.root_ctk._current_width == 300 and self.root_ctk._current_height == 400
assert self.root_ctk.window_scaling == 1.5 * customtkinter.ScalingTracker.get_window_dpi_scaling(self.root_ctk)
self.root_ctk.maxsize(400, 500)
self.root_ctk.geometry("500x500")
assert self.root_ctk.current_width == 400 and self.root_ctk.current_height == 500
assert self.root_ctk._current_width == 400 and self.root_ctk._current_height == 500
customtkinter.ScalingTracker.set_window_scaling(1)
assert self.root_ctk.current_width == 400 and self.root_ctk.current_height == 500
assert self.root_ctk._current_width == 400 and self.root_ctk._current_height == 500
print("successful")
def test_configure(self):