Skip to content

Commit 095f336

Browse files
committed
Switch around SetSizeHints hack
to avoid deprecated warning in wxPhoenix
1 parent b6a62f0 commit 095f336

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

InteractiveHtmlBom/dialog/settings_dialog.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ def __init__(self, extra_data_func, config_save_func,
2727
# noinspection PyMethodOverriding
2828
def SetSizeHints(self, sz1, sz2):
2929
try:
30-
# wxPython 3
31-
self.SetSizeHintsSz(sz1, sz2)
32-
except TypeError:
3330
# wxPython 4
3431
super(SettingsDialog, self).SetSizeHints(sz1, sz2)
32+
except TypeError:
33+
# wxPython 3
34+
self.SetSizeHintsSz(sz1, sz2)
3535

3636
def set_extra_data_path(self, extra_data_file):
3737
self.panel.extra.netlistFilePicker.Path = extra_data_file

0 commit comments

Comments
 (0)