mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-29 22:23:12 -06:00
Configuration dialog: use SpinCTRL instead of TextCTRL to specify the proxy port
This commit is contained in:
parent
4c144d2f7e
commit
bcc8f5968e
@ -79,7 +79,7 @@ class proxy(wx.Panel, baseDialog.BaseWXDialog):
|
|||||||
serverBox.Add(self.server, 0, wx.ALL, 5)
|
serverBox.Add(self.server, 0, wx.ALL, 5)
|
||||||
sizer.Add(serverBox, 0, wx.ALL, 5)
|
sizer.Add(serverBox, 0, wx.ALL, 5)
|
||||||
lbl = wx.StaticText(self, wx.ID_ANY, _(u"Port: "))
|
lbl = wx.StaticText(self, wx.ID_ANY, _(u"Port: "))
|
||||||
self.port = wx.TextCtrl(self, wx.ID_ANY)
|
self.port = wx.SpinCtrl(self, wx.ID_ANY, min=1, max=65535)
|
||||||
portBox = wx.BoxSizer(wx.HORIZONTAL)
|
portBox = wx.BoxSizer(wx.HORIZONTAL)
|
||||||
portBox.Add(lbl, 0, wx.ALL, 5)
|
portBox.Add(lbl, 0, wx.ALL, 5)
|
||||||
portBox.Add(self.port, 0, wx.ALL, 5)
|
portBox.Add(self.port, 0, wx.ALL, 5)
|
||||||
|
Loading…
Reference in New Issue
Block a user