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

# Source Code for Module Gnumed.wxGladeWidgets.wxgOrganizationEAPnl

     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/wxgOrganizationEAPnl.wxg"
     4
     5  import wx
     6
     7  # begin wxGlade: extracode
     8  # end wxGlade
     9
    10
    11
    12 -class wxgOrganizationEAPnl(wx.ScrolledWindow):
    13 -    def __init__(self, *args, **kwds):
    14
    15          from Gnumed.wxpython.gmOrganizationWidgets import cOrganizationPhraseWheel
    16          from Gnumed.wxpython.gmOrganizationWidgets import cOrgCategoryPhraseWheel
    17
    18          # begin wxGlade: wxgOrganizationEAPnl.__init__
    19          kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL
    20          wx.ScrolledWindow.__init__(self, *args, **kwds)
    21          self._PRW_org = cOrganizationPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    22          self._PRW_category = cOrgCategoryPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    23
    24          self.__set_properties()
    25          self.__do_layout()
    26          # end wxGlade
    27
    28 -    def __set_properties(self):
    29          # begin wxGlade: wxgOrganizationEAPnl.__set_properties
    30          self.SetScrollRate(10, 10)
    31          self._PRW_org.SetToolTipString(_("The name of the organization."))
    32          self._PRW_category.SetToolTipString(_("The category of the organizational unit."))
    33          # end wxGlade
    34
    35 -    def __do_layout(self):
    36          # begin wxGlade: wxgOrganizationEAPnl.__do_layout
    37          _gszr_main = wx.FlexGridSizer(2, 2, 1, 3)
    38          __lbl_org = wx.StaticText(self, -1, _("Organization"))
    39          __lbl_org.SetForegroundColour(wx.Colour(255, 0, 0))
    40          _gszr_main.Add(__lbl_org, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    41          _gszr_main.Add(self._PRW_org, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    42          __lbl_category = wx.StaticText(self, -1, _("Category"))
    43          __lbl_category.SetForegroundColour(wx.Colour(255, 0, 0))
    44          _gszr_main.Add(__lbl_category, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    45          _gszr_main.Add(self._PRW_category, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    46          self.SetSizer(_gszr_main)
    47          _gszr_main.Fit(self)
    48          _gszr_main.AddGrowableCol(1)
    49          # end wxGlade
    50
    51  # end of class wxgOrganizationEAPnl
    52