Skip to content

Commit

Permalink
Merge pull request #215 from colinmford/patch-1
Browse files Browse the repository at this point in the history
Correcting error messages in `_validateMinMaxSize`
  • Loading branch information
benkiel authored Aug 29, 2024
2 parents 20f48f7 + d3313b7 commit 3b568a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/vanilla/vanillaWindows.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,10 @@ def _validateMinMaxSize(self):
maxSize = self._window.maxSize()
if size.width < minSize.width or size.height < minSize.height:
from warnings import warn
warn("The windows `minSize` is bigger then the initial size.", VanillaWarning)
warn("The window's `minSize` is bigger than the initial size.", VanillaWarning)
elif size.width > maxSize.width or size.height > maxSize.height:
from warnings import warn
warn("The windows `maxSize` is bigger then the initial size.", VanillaWarning)
warn("The window's initial size is bigger than the `maxSize`.", VanillaWarning)

def close(self):
"""
Expand Down Expand Up @@ -1232,4 +1232,4 @@ def windowWillClose_(self, notification):

# XXX hack to get around vanilla derivatives that
# have already implemented a class named ModalWindow
ModalWindow = VModalWindow
ModalWindow = VModalWindow

0 comments on commit 3b568a2

Please sign in to comment.