[GRASS-SVN] r58469 - grass/trunk/gui/wxpython/iscatt
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Dec 16 02:30:06 PST 2013
Author: martinl
Date: 2013-12-16 02:30:06 -0800 (Mon, 16 Dec 2013)
New Revision: 58469
Modified:
grass/trunk/gui/wxpython/iscatt/dialogs.py
Log:
wxGUI/iscatt: dialog layout cosmetics
Modified: grass/trunk/gui/wxpython/iscatt/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/iscatt/dialogs.py 2013-12-16 10:22:04 UTC (rev 58468)
+++ grass/trunk/gui/wxpython/iscatt/dialogs.py 2013-12-16 10:30:06 UTC (rev 58469)
@@ -35,7 +35,7 @@
class AddScattPlotDialog(wx.Dialog):
def __init__(self, parent, bands, check_bands_callback, id = wx.ID_ANY):
- wx.Dialog.__init__(self, parent, title = ("Add scatter plots"), id = id)
+ wx.Dialog.__init__(self, parent, title = _("Add scatter plots"), id = id)
self.bands = bands
@@ -69,11 +69,11 @@
style = wx.LB_MULTIPLE | wx.LB_NEEDED_SB)
# buttons
- self.btn_add = wx.Button(parent=self, id=wx.ID_ANY, label = _("Add"))
- self.btn_remove = wx.Button(parent=self, id=wx.ID_ANY, label = _("Remove"))
+ self.btn_add = wx.Button(parent=self, id=wx.ID_ADD)
+ self.btn_remove = wx.Button(parent=self, id=wx.ID_REMOVE)
self.btn_close = wx.Button(parent=self, id=wx.ID_CANCEL)
- self.btn_ok = wx.Button(parent=self, id=wx.ID_OK, label = _("&OK"))
+ self.btn_ok = wx.Button(parent=self, id=wx.ID_OK)
self._layout()
@@ -91,14 +91,14 @@
sel = self.band_2_ch))
- dialogSizer.Add(item=self.btn_add, proportion=0, flag = wx.TOP, border = 5)
+ dialogSizer.Add(item=self.btn_add, proportion=0, flag = wx.TOP | wx.ALIGN_RIGHT, border = 5)
box = wx.StaticBox(self, id = wx.ID_ANY,
label = " %s " % _("Bands of scatter plots to be added (x y):"))
sizer = wx.StaticBoxSizer(box, wx.VERTICAL)
sizer.Add(item=self.scattsBox, proportion=1, flag=wx.EXPAND | wx.TOP, border=5)
- sizer.Add(item=self.btn_remove, proportion=0, flag=wx.TOP, border = 5)
+ sizer.Add(item=self.btn_remove, proportion=0, flag=wx.TOP | wx.ALIGN_RIGHT, border = 5)
dialogSizer.Add(item=sizer, proportion=1, flag = wx.EXPAND | wx.TOP, border = 5)
More information about the grass-commit
mailing list