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

Source Code for Module Gnumed.wxGladeWidgets.wxgCommChannelEditAreaPnl

 1  #!/usr/bin/env python 
 2  # -*- coding: utf-8 -*- 
 3  # generated by wxGlade 0.5 on Sun Dec  2 21:43:06 2007 from /home/ncq/Projekte/gm-cvs/branches/HEAD/gnumed/gnumed/client/wxg/wxgCommChannelEditAreaPnl.wxg 
 4   
 5  import wx 
 6   
7 -class wxgCommChannelEditAreaPnl(wx.ScrolledWindow):
8 - def __init__(self, *args, **kwds):
9 10 from Gnumed.wxpython import gmAddressWidgets 11 from Gnumed.wxpython import gmContactWidgets 12 13 # begin wxGlade: wxgCommChannelEditAreaPnl.__init__ 14 kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL 15 wx.ScrolledWindow.__init__(self, *args, **kwds) 16 self._PRW_type = gmContactWidgets.cCommChannelTypePhraseWheel(self, -1, "", style=wx.NO_BORDER) 17 self._TCTRL_url = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER) 18 self._TCTRL_comment = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER) 19 self._CHBOX_confidential = wx.CheckBox(self, -1, _("Confidential")) 20 21 self.__set_properties() 22 self.__do_layout()
23 # end wxGlade 24
25 - def __set_properties(self):
26 # begin wxGlade: wxgCommChannelEditAreaPnl.__set_properties 27 self.SetScrollRate(10, 10) 28 self._TCTRL_url.SetToolTipString(_("Enter the address or number for this communications channel here.")) 29 self._TCTRL_comment.SetToolTipString(_("A comment on this communications channel.")) 30 self._CHBOX_confidential.SetToolTipString(_("Check this if the communications channel is to be treated confidentially."))
31 # end wxGlade 32
33 - def __do_layout(self):
34 # begin wxGlade: wxgCommChannelEditAreaPnl.__do_layout 35 _gszr_main = wx.FlexGridSizer(4, 2, 3, 5) 36 __LBL_type = wx.StaticText(self, -1, _("Channel")) 37 _gszr_main.Add(__LBL_type, 0, wx.ALIGN_CENTER_VERTICAL, 0) 38 _gszr_main.Add(self._PRW_type, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 39 __LBL_url = wx.StaticText(self, -1, _("Value")) 40 _gszr_main.Add(__LBL_url, 0, wx.ALIGN_CENTER_VERTICAL, 0) 41 _gszr_main.Add(self._TCTRL_url, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 42 __LBL_comment = wx.StaticText(self, -1, _("Comment")) 43 _gszr_main.Add(__LBL_comment, 0, wx.ALIGN_CENTER_VERTICAL, 0) 44 _gszr_main.Add(self._TCTRL_comment, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 45 __LBL_options = wx.StaticText(self, -1, "") 46 _gszr_main.Add(__LBL_options, 0, wx.ALIGN_CENTER_VERTICAL, 0) 47 _gszr_main.Add(self._CHBOX_confidential, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 48 self.SetSizer(_gszr_main) 49 _gszr_main.Fit(self) 50 _gszr_main.AddGrowableCol(1)
51 # end wxGlade 52 53 # end of class wxgCommChannelEditAreaPnl 54