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._PRW_address = gmAddressWidgets.cAddressPhraseWheel(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._PRW_address.SetToolTipString(_("Optional: The address this communication channel is associated with.")) 30 self._PRW_address.Enable(False) 31 self._CHBOX_confidential.SetToolTipString(_("Check this if the communications channel is to be treated confidentially."))
32 # end wxGlade 33
34 - def __do_layout(self):
35 # begin wxGlade: wxgCommChannelEditAreaPnl.__do_layout 36 _gszr_main = wx.FlexGridSizer(10, 2, 3, 5) 37 __LBL_type = wx.StaticText(self, -1, _("Channel")) 38 _gszr_main.Add(__LBL_type, 0, wx.ALIGN_CENTER_VERTICAL, 0) 39 _gszr_main.Add(self._PRW_type, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 40 __LBL_url = wx.StaticText(self, -1, _("Value")) 41 _gszr_main.Add(__LBL_url, 0, wx.ALIGN_CENTER_VERTICAL, 0) 42 _gszr_main.Add(self._TCTRL_url, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 43 __LBL_address = wx.StaticText(self, -1, _("Address")) 44 _gszr_main.Add(__LBL_address, 0, wx.ALIGN_CENTER_VERTICAL, 0) 45 _gszr_main.Add(self._PRW_address, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 46 __LBL_options = wx.StaticText(self, -1, "") 47 _gszr_main.Add(__LBL_options, 0, wx.ALIGN_CENTER_VERTICAL, 0) 48 _gszr_main.Add(self._CHBOX_confidential, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 49 self.SetSizer(_gszr_main) 50 _gszr_main.Fit(self) 51 _gszr_main.AddGrowableCol(1)
52 # end wxGlade 53 54 # end of class wxgCommChannelEditAreaPnl 55