mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
restructured imports from modules, created imports in __init__.py
This commit is contained in:
@ -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):
|
||||
|
Reference in New Issue
Block a user