Gnumed.wxGladeWidgets.wxgPatientListingPnl

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

# Source Code for Module Gnumed.wxGladeWidgets.wxgPatientListingPnl

     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 wxgPatientListingPnl(wx.ScrolledWindow):
    17 -        def __init__(self, *args, **kwds):
    18                  # begin wxGlade: wxgPatientListingPnl.__init__
    19                  kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
    20                  wx.ScrolledWindow.__init__(self, *args, **kwds)
    21                  self._lbl_msg = wx.StaticText(self, wx.ID_ANY, _("Activate the respective patient by double-clicking a row."))
    22                  from Gnumed.wxpython.gmDataMiningWidgets import cPatientListingCtrl
    23                  self._LCTRL_items = cPatientListingCtrl(self, wx.ID_ANY, style=wx.BORDER_SIMPLE | wx.LC_HRULES | wx.LC_REPORT | wx.LC_VRULES)
    24                  self._BTN_1 = wx.Button(self, wx.ID_ANY, "")
    25                  self._BTN_2 = wx.Button(self, wx.ID_ANY, "")
    26                  self._BTN_3 = wx.Button(self, wx.ID_ANY, "")
    27                  self._BTN_4 = wx.Button(self, wx.ID_ANY, "")
    28                  self._BTN_5 = wx.Button(self, wx.ID_ANY, "")
    29
    30                  self.__set_properties()
    31                  self.__do_layout()
    32
    33                  self.Bind(wx.EVT_BUTTON, self._on_BTN_1_pressed, self._BTN_1)
    34                  self.Bind(wx.EVT_BUTTON, self._on_BTN_2_pressed, self._BTN_2)
    35                  self.Bind(wx.EVT_BUTTON, self._on_BTN_3_pressed, self._BTN_3)
    36                  self.Bind(wx.EVT_BUTTON, self._on_BTN_4_pressed, self._BTN_4)
    37                  self.Bind(wx.EVT_BUTTON, self._on_BTN_5_pressed, self._BTN_5)
    38                  # end wxGlade
    39
    40 -        def __set_properties(self):
    41                  # begin wxGlade: wxgPatientListingPnl.__set_properties
    42                  self.SetScrollRate(10, 10)
    43                  self._BTN_1.Enable(False)
    44                  self._BTN_2.Enable(False)
    45                  self._BTN_3.Enable(False)
    46                  self._BTN_4.Enable(False)
    47                  self._BTN_5.Enable(False)
    48                  # end wxGlade
    49
    50 -        def __do_layout(self):
    51                  # begin wxGlade: wxgPatientListingPnl.__do_layout
    52                  __szr_main = wx.BoxSizer(wx.VERTICAL)
    53                  __szr_buttons = wx.BoxSizer(wx.HORIZONTAL)
    54                  __szr_main.Add(self._lbl_msg, 0, wx.ALL | wx.EXPAND, 5)
    55                  __szr_main.Add(self._LCTRL_items, 1, wx.ALL | wx.EXPAND, 5)
    56                  __szr_buttons.Add((20, 20), 1, wx.EXPAND, 0)
    57                  __szr_buttons.Add(self._BTN_1, 0, wx.EXPAND | wx.RIGHT, 5)
    58                  __szr_buttons.Add(self._BTN_2, 0, wx.EXPAND | wx.RIGHT, 5)
    59                  __szr_buttons.Add(self._BTN_3, 0, wx.EXPAND | wx.RIGHT, 5)
    60                  __szr_buttons.Add(self._BTN_4, 0, wx.EXPAND | wx.RIGHT, 5)
    61                  __szr_buttons.Add(self._BTN_5, 0, wx.EXPAND, 5)
    62                  __szr_buttons.Add((20, 20), 1, wx.EXPAND, 0)
    63                  __szr_main.Add(__szr_buttons, 0, wx.ALL | wx.EXPAND, 5)
    64                  self.SetSizer(__szr_main)
    65                  __szr_main.Fit(self)
    66                  self.Layout()
    67                  # end wxGlade
    68
    69 -        def _on_BTN_1_pressed(self, event):  # wxGlade: wxgPatientListingPnl.<event_handler>
    70                  print("Event handler '_on_BTN_1_pressed' not implemented!")
    71                  event.Skip()
    72
    73 -        def _on_BTN_2_pressed(self, event):  # wxGlade: wxgPatientListingPnl.<event_handler>
    74                  print("Event handler '_on_BTN_2_pressed' not implemented!")
    75                  event.Skip()
    76
    77 -        def _on_BTN_3_pressed(self, event):  # wxGlade: wxgPatientListingPnl.<event_handler>
    78                  print("Event handler '_on_BTN_3_pressed' not implemented!")
    79                  event.Skip()
    80
    81 -        def _on_BTN_4_pressed(self, event):  # wxGlade: wxgPatientListingPnl.<event_handler>
    82                  print("Event handler '_on_BTN_4_pressed' not implemented!")
    83                  event.Skip()
    84
    85 -        def _on_BTN_5_pressed(self, event):  # wxGlade: wxgPatientListingPnl.<event_handler>
    86                  print("Event handler '_on_BTN_5_pressed' not implemented!")
    87                  event.Skip()
    88
    89  # end of class wxgPatientListingPnl
    90