Gnumed.wxGladeWidgets.wxgMeasurementsAsListPnl

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

# Source Code for Module Gnumed.wxGladeWidgets.wxgMeasurementsAsListPnl

     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  from Gnumed.wxpython.gmMeasurementWidgets import cLabRelatedDocumentsPnl
    15  # end wxGlade
    16
    17
    18 -class wxgMeasurementsAsListPnl(wx.Panel):
    19 -        def __init__(self, *args, **kwds):
    20                  # begin wxGlade: wxgMeasurementsAsListPnl.__init__
    21                  kwds["style"] = kwds.get("style", 0) | wx.TAB_TRAVERSAL
    22                  wx.Panel.__init__(self, *args, **kwds)
    23                  self._LCTRL_results = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT)
    24                  self._TCTRL_measurements = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_AUTO_URL | wx.TE_MULTILINE | wx.TE_READONLY)
    25                  self._PNL_related_documents = cLabRelatedDocumentsPnl(self, wx.ID_ANY, style=wx.BORDER_NONE)
    26
    27                  self.__set_properties()
    28                  self.__do_layout()
    29
    30                  self.Bind(wx.EVT_LIST_ITEM_SELECTED, self._on_result_selected, self._LCTRL_results)
    31                  # end wxGlade
    32
    33 -        def __set_properties(self):
    34                  # begin wxGlade: wxgMeasurementsAsListPnl.__set_properties
    35                  pass
    36                  # end wxGlade
    37
    38 -        def __do_layout(self):
    39                  # begin wxGlade: wxgMeasurementsAsListPnl.__do_layout
    40                  __szr_main = wx.BoxSizer(wx.HORIZONTAL)
    41                  __szr_details = wx.BoxSizer(wx.VERTICAL)
    42                  __szr_main.Add(self._LCTRL_results, 5, wx.EXPAND | wx.RIGHT, 5)
    43                  __szr_details.Add(self._TCTRL_measurements, 1, wx.EXPAND, 0)
    44                  __szr_details.Add(self._PNL_related_documents, 0, wx.EXPAND | wx.TOP, 3)
    45                  __szr_main.Add(__szr_details, 4, wx.EXPAND, 0)
    46                  self.SetSizer(__szr_main)
    47                  __szr_main.Fit(self)
    48                  self.Layout()
    49                  # end wxGlade
    50
    51 -        def _on_result_selected(self, event):  # wxGlade: wxgMeasurementsAsListPnl.<event_handler>
    52                  print("Event handler '_on_result_selected' not implemented!")
    53                  event.Skip()
    54
    55  # end of class wxgMeasurementsAsListPnl
    56