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

# Source Code for Module Gnumed.wxGladeWidgets.wxgEncounterEditAreaDlg

     1  #!/usr/bin/env python
     2  # -*- coding: ISO-8859-15 -*-
     3  # generated by wxGlade 0.4.1 on Fri Dec 22 16:54:42 2006
     4
     5  import wx
     6
     7 -class wxgEncounterEditAreaDlg(wx.Dialog):
     8 -    def __init__(self, *args, **kwds):
     9
    10          from Gnumed.wxpython import gmEMRStructWidgets
    11
    12          # begin wxGlade: wxgEncounterEditAreaDlg.__init__
    13          kwds["style"] = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX | wx.THICK_FRAME | wx.STAY_ON_TOP
    14          wx.Dialog.__init__(self, *args, **kwds)
    15          self._PNL_edit_area = gmEMRStructWidgets.cEncounterEditAreaPnl(self, -1)
    16          self._BTN_save = wx.Button(self, wx.ID_OK, _("&Save"))
    17          self._BTN_close = wx.Button(self, wx.ID_CANCEL, _("Cancel"))
    18
    19          self.__set_properties()
    20          self.__do_layout()
    21
    22          self.Bind(wx.EVT_BUTTON, self._on_save_button_pressed, id=wx.ID_OK)
    23          # end wxGlade
    24
    25 -    def __set_properties(self):
    26          # begin wxGlade: wxgEncounterEditAreaDlg.__set_properties
    27          self.SetTitle(_("edit encounter details"))
    28          self._BTN_save.SetToolTipString(_("Save the encounter details."))
    29          self._BTN_save.SetDefault()
    30          self._BTN_close.SetToolTipString(_("Close this dialog."))
    31          # end wxGlade
    32
    33 -    def __do_layout(self):
    34          # begin wxGlade: wxgEncounterEditAreaDlg.__do_layout
    35          __szr_main = wx.BoxSizer(wx.VERTICAL)
    36          __szr_buttons = wx.BoxSizer(wx.HORIZONTAL)
    37          __szr_main.Add(self._PNL_edit_area, 1, wx.ALL | wx.EXPAND, 5)
    38          __szr_buttons.Add(self._BTN_save, 0, wx.EXPAND, 0)
    39          __szr_buttons.Add((20, 20), 1, wx.EXPAND, 0)
    40          __szr_buttons.Add(self._BTN_close, 0, wx.EXPAND, 0)
    41          __szr_main.Add(__szr_buttons, 0, wx.LEFT | wx.RIGHT | wx.TOP | wx.EXPAND, 5)
    42          self.SetSizer(__szr_main)
    43          __szr_main.Fit(self)
    44          self.Layout()
    45          self.Centre()
    46          # end wxGlade
    47
    48 -    def _on_save_button_pressed(self, event): # wxGlade: wxgEncounterEditAreaDlg.<event_handler>
    49          print "Event handler `_on_save_button_pressed' not implemented!"
    50          event.Skip()
    51
    52  # end of class wxgEncounterEditAreaDlg
    53