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

# Source Code for Module Gnumed.wxGladeWidgets.wxgProvinceEAPnl

     1  #!/usr/bin/env python
     2  # -*- coding: utf8 -*-
     3  # generated by wxGlade 0.6.3 from "/home/ncq/Projekte/gm-cvs/branches/HEAD/gnumed/gnumed/client/wxg/wxgProvinceEAPnl.wxg"
     4
     5  import wx
     6
     7  # begin wxGlade: extracode
     8  # end wxGlade
     9
    10
    11
    12 -class wxgProvinceEAPnl(wx.ScrolledWindow):
    13 -    def __init__(self, *args, **kwds):
    14
    15          from Gnumed.wxpython import gmAddressWidgets
    16
    17          # begin wxGlade: wxgProvinceEAPnl.__init__
    18          kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL
    19          wx.ScrolledWindow.__init__(self, *args, **kwds)
    20          self._PRW_province = gmAddressWidgets.cStateSelectionPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    21          self._TCTRL_code = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
    22          self._PRW_country = gmAddressWidgets.cCountryPhraseWheel(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: wxgProvinceEAPnl.__set_properties
    30          self.SetScrollRate(10, 10)
    31          self._TCTRL_code.SetToolTipString(_("A code for this province."))
    32          # end wxGlade
    33
    34 -    def __do_layout(self):
    35          # begin wxGlade: wxgProvinceEAPnl.__do_layout
    36          _gszr_main = wx.FlexGridSizer(3, 2, 1, 3)
    37          __szr_code = wx.BoxSizer(wx.HORIZONTAL)
    38          __lbl_province = wx.StaticText(self, -1, _("Province"))
    39          _gszr_main.Add(__lbl_province, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    40          _gszr_main.Add(self._PRW_province, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    41          __lbl_code = wx.StaticText(self, -1, _("Code"))
    42          _gszr_main.Add(__lbl_code, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    43          __szr_code.Add(self._TCTRL_code, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    44          __szr_code.Add((20, 20), 1, wx.ALIGN_CENTER_VERTICAL, 0)
    45          _gszr_main.Add(__szr_code, 1, wx.EXPAND, 0)
    46          __lbl_country = wx.StaticText(self, -1, _("Country"))
    47          _gszr_main.Add(__lbl_country, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    48          _gszr_main.Add(self._PRW_country, 0, 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 wxgProvinceEAPnl
    55