Skip to content

Commit

Permalink
fix Cartographic Composer Add graphic tool (Line/Rectangle), (#310)
Browse files Browse the repository at this point in the history
Add Image/North Arrow dialog wx FloatSpin widget size
  • Loading branch information
tmszi committed Jan 30, 2020
1 parent 368bb8b commit ad49e97
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gui/wxpython/psmap/dialogs.py
Expand Up @@ -226,6 +226,7 @@ def __init__(self, parent, id, title, settings, apply=True):
self.objectType = None
self.unitConv = UnitConversion(self)
self.spinCtrlSize = (65, -1)
self.floatSpinSize = (120, -1)

self.Bind(wx.EVT_CLOSE, self.OnClose)

Expand Down Expand Up @@ -5865,7 +5866,7 @@ def _imagePanel(self, notebook):
if fs:
panel.image['scale'] = fs.FloatSpin(
panel, id=wx.ID_ANY, min_val=0, max_val=50, increment=0.5,
value=1, style=fs.FS_RIGHT, size=self.spinCtrlSize)
value=1, style=fs.FS_RIGHT, size=self.floatSpinSize)
panel.image['scale'].SetFormat("%f")
panel.image['scale'].SetDigits(1)
else:
Expand Down Expand Up @@ -5900,7 +5901,7 @@ def _imagePanel(self, notebook):
if fs:
panel.image['rotate'] = fs.FloatSpin(
panel, id=wx.ID_ANY, min_val=0, max_val=360, increment=0.5,
value=0, style=fs.FS_RIGHT, size=self.spinCtrlSize)
value=0, style=fs.FS_RIGHT, size=self.floatSpinSize)
panel.image['rotate'].SetFormat("%f")
panel.image['rotate'].SetDigits(1)
else:
Expand Down Expand Up @@ -6824,7 +6825,7 @@ def _rectPanel(self):
increment=1,
value=0,
style=fs.FS_RIGHT,
size=self.spinCtrlSize)
size=self.floatSpinSize)
self.widthCtrl.SetFormat("%f")
self.widthCtrl.SetDigits(1)
else:
Expand Down

0 comments on commit ad49e97

Please sign in to comment.