From b41749efa0f897c6b13d1f0b1c931ce93196960a Mon Sep 17 00:00:00 2001 From: robk-tahoe Date: Mon, 28 Jan 2008 14:36:03 -0700 Subject: [PATCH] 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. --- src/allmydata/gui/confwiz.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 2.45.2