mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
prevent width and height args in place method #1094
This commit is contained in:
parent
4b600b9179
commit
9fcd963fd2
@ -269,6 +269,8 @@ class CTkBaseClass(tkinter.Frame, CTkAppearanceModeBaseClass, CTkScalingBaseClas
|
|||||||
relheight=amount - height of this widget between 0.0 and 1.0 relative to height of master (1.0 is the same height as the master)
|
relheight=amount - height of this widget between 0.0 and 1.0 relative to height of master (1.0 is the same height as the master)
|
||||||
bordermode="inside" or "outside" - whether to take border width of master widget into account
|
bordermode="inside" or "outside" - whether to take border width of master widget into account
|
||||||
"""
|
"""
|
||||||
|
if "width" in kwargs or "height" in kwargs:
|
||||||
|
raise ValueError("'width' and 'height' arguments must be passed to the constructor of the widget, not the place method")
|
||||||
self._last_geometry_manager_call = {"function": super().place, "kwargs": kwargs}
|
self._last_geometry_manager_call = {"function": super().place, "kwargs": kwargs}
|
||||||
return super().place(**self._apply_argument_scaling(kwargs))
|
return super().place(**self._apply_argument_scaling(kwargs))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user