2 @package location_wizard.base
4 @brief Location wizard - base classes
9 (C) 2007-2011 by the GRASS Development Team
11 This program is free software under the GNU General Public License
12 (>=v2). Read the file COPYING that comes with GRASS for details.
14 @author Michael Barton
15 @author Jachym Cepicky
16 @author Martin Landa <landa.martin gmail.com>
22 """!Base class providing basic methods"""
26 def MakeLabel(self, text = "", style = wx.ALIGN_LEFT, parent = None, tooltip = None):
27 """!Make aligned label"""
30 label = wx.StaticText(parent = parent, id = wx.ID_ANY, label = text,
33 label.SetToolTipString(tooltip)
36 def MakeTextCtrl(self, text = '', size = (100,-1), style = 0, parent =
None, tooltip =
None):
37 """!Generic text control"""
40 textCtrl = wx.TextCtrl(parent = parent, id = wx.ID_ANY, value = text,
41 size = size, style = style)
43 textCtrl.SetToolTipString(tooltip)
46 def MakeButton(self, text, id = wx.ID_ANY, size = (-1,-1), parent =
None, tooltip =
None):
50 button = wx.Button(parent = parent, id = id, label = text,
53 button.SetToolTipString(tooltip)
def MakeButton
Generic button.
def MakeTextCtrl
Generic text control.
def MakeLabel
Make aligned label.
Base class providing basic methods.