# -*- coding: UTF-8 -*-
#
# generated by wxGlade
#

import wx

# begin wxGlade: dependencies
import gettext
# end wxGlade

# begin wxGlade: extracode
# end wxGlade


class wxgProvinceEAPnl(wx.ScrolledWindow):
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgProvinceEAPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		from Gnumed.wxpython.gmAddressWidgets import cStateSelectionPhraseWheel
		self._PRW_region = cStateSelectionPhraseWheel(self, wx.ID_ANY, "")
		self._TCTRL_code = wx.TextCtrl(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmAddressWidgets import cCountryPhraseWheel
		self._PRW_country = cCountryPhraseWheel(self, wx.ID_ANY, "")

		self.__set_properties()
		self.__do_layout()
		# end wxGlade

	def __set_properties(self):
		# begin wxGlade: wxgProvinceEAPnl.__set_properties
		self.SetScrollRate(10, 10)
		self._TCTRL_code.SetToolTip(_("A code for this region."))
		# end wxGlade

	def __do_layout(self):
		# begin wxGlade: wxgProvinceEAPnl.__do_layout
		_gszr_main = wx.FlexGridSizer(3, 2, 1, 3)
		__szr_code = wx.BoxSizer(wx.HORIZONTAL)
		__lbl_region = wx.StaticText(self, wx.ID_ANY, _("Region"))
		_gszr_main.Add(__lbl_region, 0, wx.ALIGN_CENTER_VERTICAL, 0)
		_gszr_main.Add(self._PRW_region, 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0)
		__lbl_code = wx.StaticText(self, wx.ID_ANY, _("Code"))
		_gszr_main.Add(__lbl_code, 0, wx.ALIGN_CENTER_VERTICAL, 0)
		__szr_code.Add(self._TCTRL_code, 1, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0)
		__szr_code.Add((20, 20), 1, wx.ALIGN_CENTER_VERTICAL, 0)
		_gszr_main.Add(__szr_code, 1, wx.EXPAND, 0)
		__lbl_country = wx.StaticText(self, wx.ID_ANY, _("Country"))
		_gszr_main.Add(__lbl_country, 0, wx.ALIGN_CENTER_VERTICAL, 0)
		_gszr_main.Add(self._PRW_country, 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0)
		self.SetSizer(_gszr_main)
		_gszr_main.Fit(self)
		_gszr_main.AddGrowableCol(1)
		self.Layout()
		# end wxGlade

# end of class wxgProvinceEAPnl
