Skip to content

Commit

Permalink
Fix alignment and clipping issue of buttons on Windows. Closes #302.
Browse files Browse the repository at this point in the history
  • Loading branch information
machawk1 committed Feb 6, 2018
1 parent 56f16e8 commit 7c9d9a1
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions bundledApps/WAIL.py
Expand Up @@ -669,9 +669,9 @@ def __init__(self, parent):

box = wx.BoxSizer(wx.VERTICAL)
box.Add(self.viewWaybackInBrowserButton, 0, wx.EXPAND, 0)
box.Add(self.editWaybackConfiguration,0, wx.EXPAND, 0)
self.SetAutoLayout(True)
box.Add(self.editWaybackConfiguration, 0, wx.EXPAND, 0)

self.SetAutoLayout(True)
self.SetSizer(box)
self.Layout()

Expand Down Expand Up @@ -912,16 +912,24 @@ def crawlURIsListed(self, evt):
class MiscellaneousPanel(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(self, parent)
bsize = self.width, self.height = (340, 25*.75)
viewArchivesFolderButtonButton = wx.Button(
self, 1, config.buttonLabel_viewArchiveFiles,
config.ui_justButtons_Position_1, bsize)
self, 1, config.buttonLabel_viewArchiveFiles)

viewArchivesFolderButtonButton.Bind(
wx.EVT_BUTTON, self.openArchivesFolder)
self.testUpdate = wx.Button(
self, 1, "Check for Updates",
config.ui_justButtons_Position_2, bsize)
self, 1, "Check for Updates")

box = wx.BoxSizer(wx.VERTICAL)
box.Add(viewArchivesFolderButtonButton, 0, wx.EXPAND, 0)
box.Add(self.testUpdate, 0, wx.EXPAND, 0)

self.SetAutoLayout(True)
self.SetSizer(box)
self.Layout()



self.testUpdate.Bind(wx.EVT_BUTTON, self.checkForUpdates)
self.testUpdate.Disable()

Expand Down

0 comments on commit 7c9d9a1

Please sign in to comment.