File tree 1 file changed +6
-9
lines changed
1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -2144,19 +2144,16 @@ def _scale_warn(
2144
2144
# noinspection PyUnresolvedReferences
2145
2145
if not self ._verbose :
2146
2146
return
2147
- elif self ._scale [0 ] and scale :
2147
+ # Iterate each type and warn accordingly
2148
+ if self ._scale [0 ] and scale :
2148
2149
warn ('widget already has a scaling factor applied. Scaling has '
2149
2150
'been disabled' )
2150
2151
if self ._max_width [0 ] is not None and maxwidth :
2151
- warn (
2152
- 'widget max width is not None. Set widget.set_max_width(None) '
2153
- 'for disabling such feature. This scaling will be ignored'
2154
- )
2152
+ warn ('widget max width is not None. Set widget.set_max_width(None) '
2153
+ 'for disabling such feature. This scaling will be ignored' )
2155
2154
if self ._max_height [0 ] is not None and maxheight :
2156
- warn (
2157
- 'widget max height is not None. Set widget.set_max_height(None) '
2158
- 'for disabling such feature. This scaling will be ignored'
2159
- )
2155
+ warn ('widget max height is not None. Set widget.set_max_height(None) '
2156
+ 'for disabling such feature. This scaling will be ignored' )
2160
2157
2161
2158
def set_max_width (
2162
2159
self ,
You can’t perform that action at this time.
0 commit comments