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

Source Code for Module Gnumed.wxGladeWidgets.wxgOrganizationEAPnl

 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 wxgOrganizationEAPnl(wx.ScrolledWindow):
17 - def __init__(self, *args, **kwds):
18 # begin wxGlade: wxgOrganizationEAPnl.__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.gmOrganizationWidgets import cOrganizationPhraseWheel 22 self._PRW_org = cOrganizationPhraseWheel(self, wx.ID_ANY, "") 23 from Gnumed.wxpython.gmOrganizationWidgets import cOrgCategoryPhraseWheel 24 self._PRW_category = cOrgCategoryPhraseWheel(self, wx.ID_ANY, "") 25 26 self.__set_properties() 27 self.__do_layout()
28 # end wxGlade 29
30 - def __set_properties(self):
31 # begin wxGlade: wxgOrganizationEAPnl.__set_properties 32 self.SetScrollRate(10, 10) 33 self._PRW_org.SetToolTip(_("The name of the organization.")) 34 self._PRW_category.SetToolTip(_("The category of the organizational unit."))
35 # end wxGlade 36
37 - def __do_layout(self):
38 # begin wxGlade: wxgOrganizationEAPnl.__do_layout 39 _gszr_main = wx.FlexGridSizer(2, 2, 1, 3) 40 __lbl_org = wx.StaticText(self, wx.ID_ANY, _("Organization")) 41 __lbl_org.SetForegroundColour(wx.Colour(255, 0, 0)) 42 _gszr_main.Add(__lbl_org, 0, wx.ALIGN_CENTER_VERTICAL, 0) 43 _gszr_main.Add(self._PRW_org, 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 44 __lbl_category = wx.StaticText(self, wx.ID_ANY, _("Category")) 45 __lbl_category.SetForegroundColour(wx.Colour(255, 0, 0)) 46 _gszr_main.Add(__lbl_category, 0, wx.ALIGN_CENTER_VERTICAL, 0) 47 _gszr_main.Add(self._PRW_category, 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 48 self.SetSizer(_gszr_main) 49 _gszr_main.Fit(self) 50 _gszr_main.AddGrowableCol(1) 51 self.Layout()
52 # end wxGlade 53 54 # end of class wxgOrganizationEAPnl 55