Gnumed.wxGladeWidgets.wxgMeasurementsAsMostRecentListPnl

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

# Source Code for Module Gnumed.wxGladeWidgets.wxgMeasurementsAsMostRecentListPnl

     1  # -*- coding: UTF-8 -*-
     2  #
     3  # generated by wxGlade
     4  #
     5
     6  import wx
     7  import wx.adv
     8
     9  # begin wxGlade: dependencies
    10  import gettext
    11  # end wxGlade
    12
    13  # begin wxGlade: extracode
    14  from Gnumed.wxpython.gmMeasurementWidgets import cLabRelatedDocumentsPnl
    15  from Gnumed.wxpython.gmListWidgets import cReportListCtrl
    16  # end wxGlade
    17
    18
    19 -class wxgMeasurementsAsMostRecentListPnl(wx.Panel):
    20 -        def __init__(self, *args, **kwds):
    21                  # begin wxGlade: wxgMeasurementsAsMostRecentListPnl.__init__
    22                  kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
    23                  wx.Panel.__init__(self, *args, **kwds)
    24                  self._HLCTRL = wx.adv.HyperlinkCtrl(self, wx.ID_ANY, _("Panel:"), _("http://www.laborlexikon.de"))
    25                  from Gnumed.wxpython.gmMeasurementWidgets import cTestPanelPRW
    26                  self._PRW_panel = cTestPanelPRW(self, wx.ID_ANY, "")
    27                  self._TCTRL_panel_comment = wx.TextCtrl(self, wx.ID_ANY, "")
    28                  self._CHBOX_show_missing = wx.CheckBox(self, wx.ID_ANY, _("&Show missing"))
    29                  self._BTN_manage_panels = wx.Button(self, wx.ID_ANY, _("Manage"), style=wx.BU_EXACTFIT)
    30                  self._LCTRL_results = cReportListCtrl(self, wx.ID_ANY, style=wx.LC_HRULES | wx.LC_REPORT | wx.LC_VRULES)
    31                  self._TCTRL_details = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_BESTWRAP | wx.TE_MULTILINE | wx.TE_READONLY)
    32                  self._PNL_related_documents = cLabRelatedDocumentsPnl(self, wx.ID_ANY, style=wx.BORDER_NONE)
    33
    34                  self.__set_properties()
    35                  self.__do_layout()
    36
    37                  self.Bind(wx.EVT_CHECKBOX, self._on_show_missing_toggled, self._CHBOX_show_missing)
    38                  self.Bind(wx.EVT_BUTTON, self._on_manage_panels_button_pressed, self._BTN_manage_panels)
    39                  # end wxGlade
    40
    41 -        def __set_properties(self):
    42                  # begin wxGlade: wxgMeasurementsAsMostRecentListPnl.__set_properties
    43                  self._TCTRL_panel_comment.SetBackgroundColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_BACKGROUND))
    44                  self._TCTRL_panel_comment.Enable(False)
    45                  self._CHBOX_show_missing.SetToolTip(_("Check to show panel tests which lack results."))
    46                  self._BTN_manage_panels.SetToolTip(_("Manage test panels."))
    47                  # end wxGlade
    48
    49 -        def __do_layout(self):
    50                  # begin wxGlade: wxgMeasurementsAsMostRecentListPnl.__do_layout
    51                  __szr_main = wx.BoxSizer(wx.VERTICAL)
    52                  __szr_results = wx.BoxSizer(wx.HORIZONTAL)
    53                  _szr_details = wx.BoxSizer(wx.VERTICAL)
    54                  __szr_panel_options = wx.BoxSizer(wx.HORIZONTAL)
    55                  __szr_panel_options.Add(self._HLCTRL, 0, wx.ALIGN_CENTER_VERTICAL, 5)
    56                  __szr_panel_options.Add(self._PRW_panel, 2, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 10)
    57                  __szr_panel_options.Add(self._TCTRL_panel_comment, 3, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)
    58                  __szr_panel_options.Add(self._CHBOX_show_missing, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)
    59                  __szr_panel_options.Add(self._BTN_manage_panels, 0, wx.ALIGN_CENTER_VERTICAL, 5)
    60                  __szr_main.Add(__szr_panel_options, 0, wx.EXPAND | wx.LEFT | wx.RIGHT | wx.TOP, 5)
    61                  __szr_results.Add(self._LCTRL_results, 5, wx.EXPAND | wx.RIGHT, 3)
    62                  _szr_details.Add(self._TCTRL_details, 1, wx.BOTTOM | wx.EXPAND, 3)
    63                  _szr_details.Add(self._PNL_related_documents, 0, wx.EXPAND | wx.TOP, 3)
    64                  __szr_results.Add(_szr_details, 4, wx.EXPAND, 0)
    65                  __szr_main.Add(__szr_results, 1, wx.ALL | wx.EXPAND, 5)
    66                  self.SetSizer(__szr_main)
    67                  __szr_main.Fit(self)
    68                  self.Layout()
    69                  # end wxGlade
    70
    71 -        def _on_show_missing_toggled(self, event):  # wxGlade: wxgMeasurementsAsMostRecentListPnl.<event_handler>
    72                  print("Event handler '_on_show_missing_toggled' not implemented!")
    73                  event.Skip()
    74
    75 -        def _on_manage_panels_button_pressed(self, event):  # wxGlade: wxgMeasurementsAsMostRecentListPnl.<event_handler>
    76                  print("Event handler '_on_manage_panels_button_pressed' not implemented!")
    77                  event.Skip()
    78
    79  # end of class wxgMeasurementsAsMostRecentListPnl
    80