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

Source Code for Module Gnumed.wxGladeWidgets.wxgPersonNameEAPnl

 1  #!/usr/bin/env python 
 2  # -*- coding: utf-8 -*- 
 3  # generated by wxGlade 0.5 on Mon Nov 26 19:02:45 2007 from /home/ncq/Projekte/gm-cvs/branches/HEAD/gnumed/gnumed/client/wxg/wxgPersonNameEAPnl.wxg 
 4   
 5  import wx 
 6   
7 -class wxgPersonNameEAPnl(wx.ScrolledWindow):
8 - def __init__(self, *args, **kwds):
9 10 from Gnumed.wxpython import gmDemographicsWidgets, gmDateTimeInput 11 12 # begin wxGlade: wxgPersonNameEAPnl.__init__ 13 kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL 14 wx.ScrolledWindow.__init__(self, *args, **kwds) 15 self._PRW_firstname = gmDemographicsWidgets.cFirstnamePhraseWheel(self, -1, "", style=wx.NO_BORDER) 16 self._PRW_lastname = gmDemographicsWidgets.cLastnamePhraseWheel(self, -1, "", style=wx.NO_BORDER) 17 self._PRW_nick = gmDemographicsWidgets.cNicknamePhraseWheel(self, -1, "", style=wx.NO_BORDER) 18 self._TCTRL_comment = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER) 19 self._CHBOX_active = wx.CheckBox(self, -1, _("Active name")) 20 21 self.__set_properties() 22 self.__do_layout()
23 # end wxGlade 24
25 - def __set_properties(self):
26 # begin wxGlade: wxgPersonNameEAPnl.__set_properties 27 self.SetScrollRate(10, 10) 28 self._TCTRL_comment.SetToolTipString(_("Enter a comment relevant to this name (such as \"before marriage\").")) 29 self._CHBOX_active.SetToolTipString(_("Check this to make this the currently active name."))
30 # end wxGlade 31
32 - def __do_layout(self):
33 # begin wxGlade: wxgPersonNameEAPnl.__do_layout 34 _gszr_main = wx.FlexGridSizer(5, 2, 3, 5) 35 __LBL_firstname = wx.StaticText(self, -1, _("First name")) 36 _gszr_main.Add(__LBL_firstname, 0, wx.ALIGN_CENTER_VERTICAL, 0) 37 _gszr_main.Add(self._PRW_firstname, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 38 __LBL_lastname = wx.StaticText(self, -1, _("Last name")) 39 _gszr_main.Add(__LBL_lastname, 0, wx.ALIGN_CENTER_VERTICAL, 0) 40 _gszr_main.Add(self._PRW_lastname, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 41 __LBL_preferred = wx.StaticText(self, -1, _("Nick name")) 42 _gszr_main.Add(__LBL_preferred, 0, wx.ALIGN_CENTER_VERTICAL, 0) 43 _gszr_main.Add(self._PRW_nick, 1, 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, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 47 _gszr_main.Add((20, 20), 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 48 _gszr_main.Add(self._CHBOX_active, 0, wx.ALIGN_CENTER_VERTICAL, 10) 49 self.SetSizer(_gszr_main) 50 _gszr_main.Fit(self) 51 _gszr_main.AddGrowableCol(1)
52 # end wxGlade 53 54 # end of class wxgPersonNameEAPnl 55