Gnumed.wxGladeWidgets.wxgXdtListPnl

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

# Source Code for Module Gnumed.wxGladeWidgets.wxgXdtListPnl

     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  from Gnumed.wxpython.gmListWidgets import cReportListCtrl
    14  # end wxGlade
    15
    16
    17 -class wxgXdtListPnl(wx.ScrolledWindow):
    18 -        def __init__(self, *args, **kwds):
    19                  # begin wxGlade: wxgXdtListPnl.__init__
    20                  kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
    21                  wx.ScrolledWindow.__init__(self, *args, **kwds)
    22                  self._LCTRL_xdt = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT)
    23                  self._BTN_load = wx.Button(self, wx.ID_ANY, _("load file"))
    24
    25                  self.__set_properties()
    26                  self.__do_layout()
    27
    28                  self.Bind(wx.EVT_BUTTON, self._on_load_button_pressed, self._BTN_load)
    29                  # end wxGlade
    30
    31 -        def __set_properties(self):
    32                  # begin wxGlade: wxgXdtListPnl.__set_properties
    33                  self.SetScrollRate(10, 10)
    34                  self._LCTRL_xdt.SetFocus()
    35                  self._BTN_load.SetToolTip(_("Load an xDT file."))
    36                  self._BTN_load.SetDefault()
    37                  # end wxGlade
    38
    39 -        def __do_layout(self):
    40                  # begin wxGlade: wxgXdtListPnl.__do_layout
    41                  _szr_main = wx.BoxSizer(wx.VERTICAL)
    42                  _szr_main.Add(self._LCTRL_xdt, 1, wx.EXPAND, 0)
    43                  _szr_main.Add(self._BTN_load, 0, 0, 0)
    44                  self.SetSizer(_szr_main)
    45                  _szr_main.Fit(self)
    46                  self.Layout()
    47                  # end wxGlade
    48
    49 -        def _on_load_button_pressed(self, event):  # wxGlade: wxgXdtListPnl.<event_handler>
    50                  print("Event handler '_on_load_button_pressed' not implemented!")
    51                  event.Skip()
    52
    53  # end of class wxgXdtListPnl
    54