From: robk-tahoe Date: Mon, 28 Jan 2008 21:36:03 +0000 (-0700) Subject: confwiz: revise layout X-Git-Tag: allmydata-tahoe-0.8.0~215 X-Git-Url: https://git.rkrishnan.org/pf/$top_link?a=commitdiff_plain;h=b41749efa0f897c6b13d1f0b1c931ce93196960a;p=tahoe-lafs%2Ftahoe-lafs.git confwiz: revise layout fix the make-confwiz-match-installer-size changes, to eliminate some weird layout/rendering bugs. also tweaked the layout slightly to add space between the warning label and the newsletter subscribe checkbox. --- diff --git a/src/allmydata/gui/confwiz.py b/src/allmydata/gui/confwiz.py index 9729572a..6a0f3958 100644 --- a/src/allmydata/gui/confwiz.py +++ b/src/allmydata/gui/confwiz.py @@ -148,11 +148,11 @@ class LoginFrame(wx.Frame): title = 'Allmydata Tahoe Config Wizard' wx.Frame.__init__(self, None, -1, title) self.app = app - self.SetSizeHints(500, 360, 600, 800) self.SetIcon(amdicon.getIcon()) self.Bind(wx.EVT_CLOSE, self.close) background = wx.Panel(self, -1) + background.SetSizeHints(500, 360, 600, 800) background.parent = self self.login_panel = LoginPanel(background) self.reg_btn_panel = RegisterButtonPanel(background, app) @@ -178,11 +178,11 @@ class RegisterFrame(wx.Frame): title = 'Allmydata Tahoe Config Wizard' wx.Frame.__init__(self, None, -1, title) self.app = app - self.SetSizeHints(500, 360, 600, 800) self.SetIcon(amdicon.getIcon()) self.Bind(wx.EVT_CLOSE, self.close) background = wx.Panel(self, -1) + background.SetSizeHints(500, 360, 600, 800) background.parent = self self.register_panel = RegisterPanel(background) sizer = wx.BoxSizer(wx.VERTICAL) @@ -325,6 +325,7 @@ class RegisterPanel(wx.Panel): login_sizer.Add(self.create_account_button, 0, wx.ALIGN_RIGHT | wx.ALL, 2) self.sizer.Add(login_sizer, 1, wx.EXPAND | wx.ALL, 2) self.sizer.Add(self.warning_label, 0, wx.CENTER | wx.ALL, 2) + self.sizer.Add(wx.Size(2,2), 0, wx.EXPAND | wx.ALL, 4) self.sizer.Add(self.subscribe_box, 0, wx.CENTER | wx.ALL, 2) self.SetSizer(self.sizer) self.SetAutoLayout(True)