Gnumed.wxGladeWidgets.wxgProvinceEAPnl

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

# Source Code for Module Gnumed.wxGladeWidgets.wxgProvinceEAPnl

     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 wxgProvinceEAPnl(wx.ScrolledWindow):
    17 -        def __init__(self, *args, **kwds):
    18                  # begin wxGlade: wxgProvinceEAPnl.__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.gmAddressWidgets import cStateSelectionPhraseWheel
    22                  self._PRW_region = cStateSelectionPhraseWheel(self, wx.ID_ANY, "")
    23                  self._TCTRL_code = wx.TextCtrl(self, wx.ID_ANY, "")
    24                  from Gnumed.wxpython.gmAddressWidgets import cCountryPhraseWheel
    25                  self._PRW_country = cCountryPhraseWheel(self, wx.ID_ANY, "")
    26
    27                  self.__set_properties()
    28                  self.__do_layout()
    29                  # end wxGlade
    30
    31 -        def __set_properties(self):
    32                  # begin wxGlade: wxgProvinceEAPnl.__set_properties
    33                  self.SetScrollRate(10, 10)
    34                  self._TCTRL_code.SetToolTip(_("A code for this region."))
    35                  # end wxGlade
    36
    37 -        def __do_layout(self):
    38                  # begin wxGlade: wxgProvinceEAPnl.__do_layout
    39                  _gszr_main = wx.FlexGridSizer(3, 2, 1, 3)
    40                  __szr_code = wx.BoxSizer(wx.HORIZONTAL)
    41                  __lbl_region = wx.StaticText(self, wx.ID_ANY, _("Region"))
    42                  _gszr_main.Add(__lbl_region, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    43                  _gszr_main.Add(self._PRW_region, 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0)
    44                  __lbl_code = wx.StaticText(self, wx.ID_ANY, _("Code"))
    45                  _gszr_main.Add(__lbl_code, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    46                  __szr_code.Add(self._TCTRL_code, 1, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0)
    47                  __szr_code.Add((20, 20), 1, wx.ALIGN_CENTER_VERTICAL, 0)
    48                  _gszr_main.Add(__szr_code, 1, wx.EXPAND, 0)
    49                  __lbl_country = wx.StaticText(self, wx.ID_ANY, _("Country"))
    50                  _gszr_main.Add(__lbl_country, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    51                  _gszr_main.Add(self._PRW_country, 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0)
    52                  self.SetSizer(_gszr_main)
    53                  _gszr_main.Fit(self)
    54                  _gszr_main.AddGrowableCol(1)
    55                  self.Layout()
    56                  # end wxGlade
    57
    58  # end of class wxgProvinceEAPnl
    59