Package Gnumed :: Package wxGladeWidgets :: Module wxgMeasurementOrgEAPnl
[frames] | no frames]

Source Code for Module Gnumed.wxGladeWidgets.wxgMeasurementOrgEAPnl

 1  #!/usr/bin/env python 
 2  # -*- coding: utf8 -*- 
 3  # generated by wxGlade 0.6.3 from "/home/ncq/Projekte/gm-cvs/branches/HEAD/gnumed/gnumed/client/wxg/wxgMeasurementOrgEAPnl.wxg" 
 4   
 5  import wx 
 6   
 7  # begin wxGlade: extracode 
 8  # end wxGlade 
 9   
10   
11   
12 -class wxgMeasurementOrgEAPnl(wx.ScrolledWindow):
13 - def __init__(self, *args, **kwds):
14 15 from Gnumed.wxpython import gmMeasurementWidgets 16 17 # begin wxGlade: wxgMeasurementOrgEAPnl.__init__ 18 kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL 19 wx.ScrolledWindow.__init__(self, *args, **kwds) 20 self._PRW_name = gmMeasurementWidgets.cMeasurementOrgPhraseWheel(self, -1, "", style=wx.NO_BORDER) 21 self._TCTRL_contact = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER) 22 self._TCTRL_comment = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER) 23 24 self.__set_properties() 25 self.__do_layout()
26 # end wxGlade 27
28 - def __set_properties(self):
29 # begin wxGlade: wxgMeasurementOrgEAPnl.__set_properties 30 self.SetScrollRate(10, 10) 31 self._TCTRL_contact.SetToolTipString(_("A way of contacting this lab, ideally a direct clinical contact.\n\nThis will be shown in the tooltip of test results originating from this lab.")) 32 self._TCTRL_comment.SetToolTipString(_("A comment on this lab."))
33 # end wxGlade 34
35 - def __do_layout(self):
36 # begin wxGlade: wxgMeasurementOrgEAPnl.__do_layout 37 _gszr_main = wx.FlexGridSizer(3, 2, 1, 3) 38 __lbl_org = wx.StaticText(self, -1, _("Lab name")) 39 _gszr_main.Add(__lbl_org, 0, wx.ALIGN_CENTER_VERTICAL, 0) 40 _gszr_main.Add(self._PRW_name, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 41 __lbl_contact = wx.StaticText(self, -1, _("Contact")) 42 _gszr_main.Add(__lbl_contact, 0, wx.ALIGN_CENTER_VERTICAL, 0) 43 _gszr_main.Add(self._TCTRL_contact, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 44 __lbl_comment = wx.StaticText(self, -1, _("Comment")) 45 _gszr_main.Add(__lbl_comment, 0, wx.ALIGN_CENTER_VERTICAL, 0) 46 _gszr_main.Add(self._TCTRL_comment, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 47 self.SetSizer(_gszr_main) 48 _gszr_main.Fit(self) 49 _gszr_main.AddGrowableCol(1)
50 # end wxGlade 51 52 # end of class wxgMeasurementOrgEAPnl 53