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

Source Code for Module Gnumed.wxGladeWidgets.wxgCommChannelEditAreaPnl

 1  # -*- coding: UTF-8 -*- 
 2  # 
 3  # generated by wxGlade 
 4  # 
 5   
 6  import wx 
 7   
 8  # begin wxGlade: dependencies 
 9  import gettext 
10  # end wxGlade 
11   
12  # begin wxGlade: extracode 
13  # end wxGlade 
14   
15   
16 -class wxgCommChannelEditAreaPnl(wx.ScrolledWindow):
17 - def __init__(self, *args, **kwds):
18 # begin wxGlade: wxgCommChannelEditAreaPnl.__init__ 19 kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL 20 wx.ScrolledWindow.__init__(self, *args, **kwds) 21 from Gnumed.wxpython.gmContactWidgets import cCommChannelTypePhraseWheel 22 self._PRW_type = cCommChannelTypePhraseWheel(self, wx.ID_ANY, "") 23 self._TCTRL_url = wx.TextCtrl(self, wx.ID_ANY, "") 24 self._TCTRL_comment = wx.TextCtrl(self, wx.ID_ANY, "") 25 self._CHBOX_confidential = wx.CheckBox(self, wx.ID_ANY, _("Confidential")) 26 27 self.__set_properties() 28 self.__do_layout()
29 # end wxGlade 30
31 - def __set_properties(self):
32 # begin wxGlade: wxgCommChannelEditAreaPnl.__set_properties 33 self.SetScrollRate(10, 10) 34 self._TCTRL_url.SetToolTip(_("Enter the address or number for this communications channel here.")) 35 self._TCTRL_comment.SetToolTip(_("A comment on this communications channel.")) 36 self._CHBOX_confidential.SetToolTip(_("Check this if the communications channel is to be treated confidentially."))
37 # end wxGlade 38
39 - def __do_layout(self):
40 # begin wxGlade: wxgCommChannelEditAreaPnl.__do_layout 41 _gszr_main = wx.FlexGridSizer(4, 2, 3, 5) 42 __LBL_type = wx.StaticText(self, wx.ID_ANY, _("Channel")) 43 _gszr_main.Add(__LBL_type, 0, wx.ALIGN_CENTER_VERTICAL, 0) 44 _gszr_main.Add(self._PRW_type, 1, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 45 __LBL_url = wx.StaticText(self, wx.ID_ANY, _("Value")) 46 _gszr_main.Add(__LBL_url, 0, wx.ALIGN_CENTER_VERTICAL, 0) 47 _gszr_main.Add(self._TCTRL_url, 1, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 48 __LBL_comment = wx.StaticText(self, wx.ID_ANY, _("Comment")) 49 _gszr_main.Add(__LBL_comment, 0, wx.ALIGN_CENTER_VERTICAL, 0) 50 _gszr_main.Add(self._TCTRL_comment, 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 51 __LBL_options = wx.StaticText(self, wx.ID_ANY, "") 52 _gszr_main.Add(__LBL_options, 0, wx.ALIGN_CENTER_VERTICAL, 0) 53 _gszr_main.Add(self._CHBOX_confidential, 1, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 54 self.SetSizer(_gszr_main) 55 _gszr_main.Fit(self) 56 _gszr_main.AddGrowableCol(1) 57 self.Layout()
58 # end wxGlade 59 60 # end of class wxgCommChannelEditAreaPnl 61