Skip to content

Commit

Permalink
Fix compatibility with wxPython 4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dhowland committed Jun 6, 2020
1 parent a8dac39 commit 89494b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion keymapper/easykeymap/gui/newboardwizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def create_widgets(self):
st = wx.StaticText(self.parent, label=self.label)
grid_sizer.Add(st, flag=wx.ALIGN_CENTER_VERTICAL)
widget = self._create_input()
grid_sizer.Add(widget, flag=wx.ALIGN_CENTER_VERTICAL|wx.EXPAND)
grid_sizer.Add(widget, flag=wx.EXPAND)

def _create_input(self):
pass # override
Expand Down
4 changes: 2 additions & 2 deletions keymapper/easykeymap/gui/programdialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ def __init__(self, *args, **kwargs):

self.task_ch = wx.Choice(self, choices=[t.description for t in self.tasks])
self.Bind(wx.EVT_CHOICE, self.OnChoice, self.task_ch)
task_sizer.Add(self.task_ch, proportion=1, flag=wx.ALIGN_CENTER_VERTICAL|wx.EXPAND)
task_sizer.Add(self.task_ch, proportion=1, flag=wx.EXPAND)
self.run_btn = wx.Button(self, label="Run", style=wx.BORDER_NONE)
self.Bind(wx.EVT_BUTTON, self.OnButton, self.run_btn)
task_sizer.Add(self.run_btn, flag=wx.ALIGN_CENTER_VERTICAL)

grid_sizer.Add(task_sizer, flag=wx.ALIGN_CENTER_VERTICAL|wx.EXPAND)
grid_sizer.Add(task_sizer, flag=wx.EXPAND)

main_sizer.Add(grid_sizer, flag=wx.EXPAND|wx.ALL, border=MARGIN)

Expand Down

0 comments on commit 89494b1

Please sign in to comment.