Skip to content

Commit

Permalink
wxGUI: fix wxPython 4.1 support (#1161)
Browse files Browse the repository at this point in the history
remove bad sizer flags
  • Loading branch information
nilason authored and petrasovaa committed Dec 13, 2020
1 parent 48d4028 commit 8bb3cb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions gui/wxpython/gui_core/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,7 @@ def _layout(self):
proportion=0,
flag=wx.ALIGN_CENTER_VERTICAL)
keySizer.AddSpacer(10)
keySizer.Add(self.keycol, proportion=0,
flag=wx.ALIGN_RIGHT)
keySizer.Add(self.keycol, proportion=0)
self.dataSizer.Add(keySizer, proportion=1,
flag=wx.EXPAND | wx.ALL, border=1)

Expand Down
2 changes: 1 addition & 1 deletion gui/wxpython/modules/import_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ def _layout(self):
dialogSizer.Add(
btnSizer,
proportion=0,
flag=wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM | wx.TOP | wx.ALIGN_RIGHT,
flag=wx.BOTTOM | wx.TOP | wx.ALIGN_RIGHT,
border=10)

self.panel.SetAutoLayout(True)
Expand Down

0 comments on commit 8bb3cb5

Please sign in to comment.