Fully implemented proxy settings UI, the settings can be accessed thru settings.ProxySettings
This commit is contained in:
@@ -37,7 +37,16 @@ class PreferenceDialog(wx.Dialog):
|
||||
self.imageList = wx.ImageList(64,64)
|
||||
self.listbook.SetImageList(self.imageList)
|
||||
|
||||
mainSizer.Add(self.listbook, 1, wx.EXPAND | wx.ALL, 5)
|
||||
mainSizer.Add(self.listbook, 1, wx.EXPAND | wx.TOP|wx.BOTTOM|wx.LEFT, 5)
|
||||
|
||||
self.m_staticline2 = wx.StaticLine( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL )
|
||||
mainSizer.Add( self.m_staticline2, 0, wx.EXPAND, 5 )
|
||||
|
||||
btnSizer = wx.BoxSizer( wx.HORIZONTAL )
|
||||
btnSizer.AddSpacer( ( 0, 0), 1, wx.EXPAND, 5 )
|
||||
self.btnOK = wx.Button( self, wx.ID_ANY, u"OK", wx.DefaultPosition, wx.DefaultSize, 0 )
|
||||
btnSizer.Add( self.btnOK, 0, wx.ALL, 5 )
|
||||
mainSizer.Add(btnSizer,0 , wx.EXPAND, 5)
|
||||
self.SetSizer(mainSizer)
|
||||
|
||||
self.Centre(wx.BOTH)
|
||||
@@ -53,4 +62,9 @@ class PreferenceDialog(wx.Dialog):
|
||||
self.listbook.AddPage(page, title, imageId = imgID)
|
||||
|
||||
self.Fit()
|
||||
self.Layout()
|
||||
self.Layout()
|
||||
|
||||
self.btnOK.Bind(wx.EVT_BUTTON, self.OnBtnOK)
|
||||
|
||||
def OnBtnOK(self, event):
|
||||
self.Destroy()
|
||||
Reference in New Issue
Block a user