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

# Source Code for Module Gnumed.wxGladeWidgets.wxgLabRelatedDocumentsPnl

     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  # end wxGlade
    14
    15
    16 -class wxgLabRelatedDocumentsPnl(wx.Panel):
    17 -        def __init__(self, *args, **kwds):
    18                  # begin wxGlade: wxgLabRelatedDocumentsPnl.__init__
    19                  kwds["style"] = kwds.get("style", 0) | wx.TAB_TRAVERSAL
    20                  wx.Panel.__init__(self, *args, **kwds)
    21                  self._LBL_no_of_docs = wx.StaticText(self, wx.ID_ANY, _("Related documents: XX"))
    22                  self._BTN_list_documents = wx.Button(self, wx.ID_ANY, _("List"), style=wx.BU_EXACTFIT)
    23                  self._BTN_select_lab_doc_types = wx.Button(self, wx.ID_ANY, _("Select types"), style=wx.BU_EXACTFIT)
    24
    25                  self.__set_properties()
    26                  self.__do_layout()
    27
    28                  self.Bind(wx.EVT_BUTTON, self._on_list_documents_button_pressed, self._BTN_list_documents)
    29                  self.Bind(wx.EVT_BUTTON, self._on_select_lab_doc_types_button_pressed, self._BTN_select_lab_doc_types)
    30                  # end wxGlade
    31
    32 -        def __set_properties(self):
    33                  # begin wxGlade: wxgLabRelatedDocumentsPnl.__set_properties
    34                  self._BTN_list_documents.SetToolTip(_("List lab documents within the episode of the selected measurement."))
    35                  self._BTN_list_documents.Enable(False)
    36                  self._BTN_select_lab_doc_types.SetToolTip(_("Select the document types assumed to contain lab results."))
    37                  # end wxGlade
    38
    39 -        def __do_layout(self):
    40                  # begin wxGlade: wxgLabRelatedDocumentsPnl.__do_layout
    41                  __szr_main = wx.BoxSizer(wx.HORIZONTAL)
    42                  __szr_main.Add(self._LBL_no_of_docs, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)
    43                  __szr_main.Add(self._BTN_list_documents, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    44                  __szr_main.Add((20, 20), 1, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0)
    45                  __szr_main.Add(self._BTN_select_lab_doc_types, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    46                  self.SetSizer(__szr_main)
    47                  __szr_main.Fit(self)
    48                  self.Layout()
    49                  # end wxGlade
    50
    51 -        def _on_list_documents_button_pressed(self, event):  # wxGlade: wxgLabRelatedDocumentsPnl.<event_handler>
    52                  print("Event handler '_on_list_documents_button_pressed' not implemented!")
    53                  event.Skip()
    54
    55 -        def _on_select_lab_doc_types_button_pressed(self, event):  # wxGlade: wxgLabRelatedDocumentsPnl.<event_handler>
    56                  print("Event handler '_on_select_lab_doc_types_button_pressed' not implemented!")
    57                  event.Skip()
    58
    59  # end of class wxgLabRelatedDocumentsPnl
    60