1
2
3
4
5 import wx
6
7
8
9
10
11
14
15 kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL
16 wx.ScrolledWindow.__init__(self, *args, **kwds)
17 self._TCTRL_l10n_name = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
18 self._TCTRL_name = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
19
20 self.__set_properties()
21 self.__do_layout()
22
23
25
26 self.SetScrollRate(10, 10)
27 self._TCTRL_l10n_name.SetToolTipString(_("Required: A name for this encounter type in your local language."))
28 self._TCTRL_name.SetToolTipString(_("Optional: A system-wide description for this encounter type. If you leave this empty the local name will be used.\n\nIt is useful to choose an English term but that is not mandatory. One advantage to using a system-wide type description is that different people can have the system description translated into their language and still use the same encounter type."))
29 self._TCTRL_name.Enable(False)
30
31
33
34 _gszr_main = wx.FlexGridSizer(2, 2, 1, 3)
35 __lbl_l10n_name = wx.StaticText(self, -1, _("Local name"))
36 __lbl_l10n_name.SetForegroundColour(wx.Colour(255, 0, 0))
37 _gszr_main.Add(__lbl_l10n_name, 0, wx.ALIGN_CENTER_VERTICAL, 0)
38 _gszr_main.Add(self._TCTRL_l10n_name, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
39 __lbl_name = wx.StaticText(self, -1, _("Encounter type"))
40 _gszr_main.Add(__lbl_name, 0, wx.ALIGN_CENTER_VERTICAL, 0)
41 _gszr_main.Add(self._TCTRL_name, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
42 self.SetSizer(_gszr_main)
43 _gszr_main.Fit(self)
44 _gszr_main.AddGrowableCol(1)
45
46
47
48