Skip to content

Commit

Permalink
wxGUI/dbmgr: set optimal 'SpinCtrl' widget width for param arg min=1,…
Browse files Browse the repository at this point in the history
… max=1e6 which is 137
  • Loading branch information
tmszi committed Feb 14, 2021
1 parent 87589f1 commit a31b1ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui/wxpython/dbmgr/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2357,7 +2357,7 @@ def AddLayer(self, layer, pos=-1):
flag=wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT,
border=5)

length = SpinCtrl(parent=panel, id=wx.ID_ANY, size=(65, -1),
length = SpinCtrl(parent=panel, id=wx.ID_ANY, size=(137, -1),
initial=250,
min=1, max=1e6)
length.Enable(False)
Expand Down Expand Up @@ -3086,7 +3086,7 @@ def _createAddPage(self):
self.addLayerWidgets = {'layer':
(StaticText(parent=self.addPanel, id=wx.ID_ANY,
label='%s:' % _("Layer")),
SpinCtrl(parent=self.addPanel, id=wx.ID_ANY, size=(65, -1),
SpinCtrl(parent=self.addPanel, id=wx.ID_ANY, size=(137, -1),
initial=maxLayer + 1,
min=1, max=1e6)),
'driver':
Expand Down

0 comments on commit a31b1ff

Please sign in to comment.