From: robk-tahoe Date: Mon, 28 Jan 2008 21:07:13 +0000 (-0700) Subject: tweak config wizard window size X-Git-Tag: allmydata-tahoe-0.8.0~216 X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=6832fa52c0ea1e15f5d3e9e55318b30e95ee8f44;p=tahoe-lafs%2Ftahoe-lafs.git tweak config wizard window size adjust the confiwiz frames to display at a size comparable to the innosetup installer window --- diff --git a/src/allmydata/gui/confwiz.py b/src/allmydata/gui/confwiz.py index 0df6da3e..9729572a 100644 --- a/src/allmydata/gui/confwiz.py +++ b/src/allmydata/gui/confwiz.py @@ -148,7 +148,7 @@ class LoginFrame(wx.Frame): title = 'Allmydata Tahoe Config Wizard' wx.Frame.__init__(self, None, -1, title) self.app = app - self.SetSizeHints(100, 100, 600, 800) + self.SetSizeHints(500, 360, 600, 800) self.SetIcon(amdicon.getIcon()) self.Bind(wx.EVT_CLOSE, self.close) @@ -158,7 +158,9 @@ class LoginFrame(wx.Frame): self.reg_btn_panel = RegisterButtonPanel(background, app) sizer = wx.BoxSizer(wx.VERTICAL) background_sizer = wx.BoxSizer(wx.VERTICAL) - background_sizer.Add(self.login_panel, 1, wx.ALIGN_CENTER_HORIZONTAL | wx.ALL, 26) + background_sizer.Add(wx.Size(2,2), 10, wx.EXPAND | wx.ALL, 26) + background_sizer.Add(self.login_panel, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALL, 26) + background_sizer.Add(wx.Size(2,2), 10, wx.EXPAND | wx.ALL, 26) background_sizer.Add(self.reg_btn_panel, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALL, 26) background.SetSizer(background_sizer) sizer.Add(background, 0, wx.EXPAND | wx.ALL, 0) @@ -176,7 +178,7 @@ class RegisterFrame(wx.Frame): title = 'Allmydata Tahoe Config Wizard' wx.Frame.__init__(self, None, -1, title) self.app = app - self.SetSizeHints(100, 100, 600, 800) + self.SetSizeHints(500, 360, 600, 800) self.SetIcon(amdicon.getIcon()) self.Bind(wx.EVT_CLOSE, self.close) @@ -185,7 +187,9 @@ class RegisterFrame(wx.Frame): self.register_panel = RegisterPanel(background) sizer = wx.BoxSizer(wx.VERTICAL) background_sizer = wx.BoxSizer(wx.VERTICAL) + background_sizer.Add(wx.Size(2,2), 10, wx.EXPAND | wx.ALL, 26) background_sizer.Add(self.register_panel, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALL, 26) + background_sizer.Add(wx.Size(2,2), 10, wx.EXPAND | wx.ALL, 26) background.SetSizer(background_sizer) sizer.Add(background, 0, wx.EXPAND | wx.ALL, 0) self.SetSizer(sizer)