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

# Source Code for Module Gnumed.wxGladeWidgets.wxgDatabaseTranslationEAPnl

     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/wxgDatabaseTranslationEAPnl.wxg"
     4
     5  import wx
     6
     7  # begin wxGlade: extracode
     8  # end wxGlade
     9
    10
    11
    12 -class wxgDatabaseTranslationEAPnl(wx.ScrolledWindow):
    13 -    def __init__(self, *args, **kwds):
    14          # begin wxGlade: wxgDatabaseTranslationEAPnl.__init__
    15          kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL
    16          wx.ScrolledWindow.__init__(self, *args, **kwds)
    17          self._TCTRL_original = wx.TextCtrl(self, -1, "", style=wx.TE_MULTILINE|wx.TE_READONLY|wx.NO_BORDER)
    18          self._TCTRL_translation = wx.TextCtrl(self, -1, "", style=wx.TE_MULTILINE|wx.NO_BORDER)
    19          self._TCTRL_language = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
    20
    21          self.__set_properties()
    22          self.__do_layout()
    23          # end wxGlade
    24
    25 -    def __set_properties(self):
    26          # begin wxGlade: wxgDatabaseTranslationEAPnl.__set_properties
    27          self.SetScrollRate(10, 10)
    28          self._TCTRL_original.SetToolTipString(_("Original string as found in the database. Usually in English."))
    29          self._TCTRL_translation.SetToolTipString(_("Enter your translation here."))
    30          self._TCTRL_language.SetToolTipString(_("Enter the language code here. You need either the two letter or the four letter ISO code. When entering four letter codes use the format xx_XX, such as de_DE."))
    31          # end wxGlade
    32
    33 -    def __do_layout(self):
    34          # begin wxGlade: wxgDatabaseTranslationEAPnl.__do_layout
    35          _gszr_main = wx.FlexGridSizer(3, 2, 1, 3)
    36          __lbl_string = wx.StaticText(self, -1, _("String"))
    37          _gszr_main.Add(__lbl_string, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    38          _gszr_main.Add(self._TCTRL_original, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    39          __lbl_translation = wx.StaticText(self, -1, _("Translation"))
    40          _gszr_main.Add(__lbl_translation, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    41          _gszr_main.Add(self._TCTRL_translation, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    42          __lbl_language = wx.StaticText(self, -1, _("Language"))
    43          _gszr_main.Add(__lbl_language, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    44          _gszr_main.Add(self._TCTRL_language, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    45          self.SetSizer(_gszr_main)
    46          _gszr_main.Fit(self)
    47          _gszr_main.AddGrowableRow(0)
    48          _gszr_main.AddGrowableRow(1)
    49          _gszr_main.AddGrowableCol(1)
    50          # end wxGlade
    51
    52  # end of class wxgDatabaseTranslationEAPnl
    53