Skip to content

Commit

Permalink
prevent width and height args in place method TomSchimansky#1094
Browse files Browse the repository at this point in the history
  • Loading branch information
TomSchimansky committed Jan 22, 2023
1 parent 4b600b9 commit 9fcd963
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ def place(self, **kwargs):
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
"""
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}
return super().place(**self._apply_argument_scaling(kwargs))

Expand Down

0 comments on commit 9fcd963

Please sign in to comment.