Skip to content

Commit

Permalink
wxGUI location wizard: fix title layout, bug introduced in changes fo…
Browse files Browse the repository at this point in the history
…r wxPython 4.1 (#661)
  • Loading branch information
petrasovaa committed Aug 15, 2020
1 parent b73e96a commit 3ef4fc1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gui/wxpython/location_wizard/wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ def __init__(self, parent, title):
self.page = WizardPageSimple.__init__(self, parent)

# page title
self.title = StaticText(parent=self, id=wx.ID_ANY, label=title)
self.title = StaticText(parent=self, id=wx.ID_ANY, label=title,
style=wx.ALIGN_CENTRE_HORIZONTAL)
self.title.SetFont(wx.Font(13, wx.SWISS, wx.NORMAL, wx.BOLD))
# main sizers
self.pagesizer = wx.BoxSizer(wx.VERTICAL)
Expand All @@ -93,7 +94,7 @@ def __init__(self, parent, title):
def DoLayout(self):
"""Do page layout"""
self.pagesizer.Add(self.title, proportion=0,
flag=wx.ALIGN_CENTRE | wx.ALL,
flag=wx.EXPAND | wx.ALL,
border=5)
self.pagesizer.Add(wx.StaticLine(self, -1), proportion=0,
flag=wx.EXPAND | wx.ALL,
Expand Down

0 comments on commit 3ef4fc1

Please sign in to comment.