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

# Source Code for Module Gnumed.wxGladeWidgets.wxgOrgUnitEAPnl

     1  #!/usr/bin/env python
     2  # -*- coding: utf8 -*-
     3  # generated by wxGlade 0.6.3 from "/home/ncq/Projekte/gm-git/gnumed/gnumed/client/wxg/wxgOrgUnitEAPnl.wxg"
     4
     5  import wx
     6
     7  # begin wxGlade: extracode
     8  # end wxGlade
     9
    10
    11
    12 -class wxgOrgUnitEAPnl(wx.ScrolledWindow):
    13 -    def __init__(self, *args, **kwds):
    14
    15          from Gnumed.wxpython.gmOrganizationWidgets import cOrganizationPhraseWheel
    16          from Gnumed.wxpython.gmOrganizationWidgets import cOrgUnitPhraseWheel
    17          from Gnumed.wxpython.gmOrganizationWidgets import cOrgCategoryPhraseWheel
    18
    19          # begin wxGlade: wxgOrgUnitEAPnl.__init__
    20          kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL
    21          wx.ScrolledWindow.__init__(self, *args, **kwds)
    22          self._PRW_org = cOrganizationPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    23          self._PRW_unit = cOrgUnitPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    24          self._PRW_category = cOrgCategoryPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    25
    26          self.__set_properties()
    27          self.__do_layout()
    28          # end wxGlade
    29
    30 -    def __set_properties(self):
    31          # begin wxGlade: wxgOrgUnitEAPnl.__set_properties
    32          self.SetScrollRate(10, 10)
    33          self._PRW_org.SetToolTipString(_("The organization this unit belongs to."))
    34          self._PRW_unit.SetToolTipString(_("The name of the organizational unit."))
    35          self._PRW_category.SetToolTipString(_("The category of the organizational unit."))
    36          # end wxGlade
    37
    38 -    def __do_layout(self):
    39          # begin wxGlade: wxgOrgUnitEAPnl.__do_layout
    40          _gszr_main = wx.FlexGridSizer(3, 2, 1, 3)
    41          __lbl_org = wx.StaticText(self, -1, _("Organization"))
    42          __lbl_org.SetForegroundColour(wx.Colour(255, 0, 0))
    43          _gszr_main.Add(__lbl_org, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    44          _gszr_main.Add(self._PRW_org, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    45          __lbl_unit = wx.StaticText(self, -1, _("Unit"))
    46          __lbl_unit.SetForegroundColour(wx.Colour(255, 0, 0))
    47          _gszr_main.Add(__lbl_unit, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    48          _gszr_main.Add(self._PRW_unit, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    49          __lbl_category = wx.StaticText(self, -1, _("Category"))
    50          _gszr_main.Add(__lbl_category, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    51          _gszr_main.Add(self._PRW_category, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    52          self.SetSizer(_gszr_main)
    53          _gszr_main.Fit(self)
    54          _gszr_main.AddGrowableCol(1)
    55          # end wxGlade
    56
    57  # end of class wxgOrgUnitEAPnl
    58