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

# Source Code for Module Gnumed.wxGladeWidgets.wxgIssueSelectionDlg

     1  #!/usr/bin/env python
     2  # -*- coding: ISO-8859-15 -*-
     3  # generated by wxGlade 0.4cvs on Sat Jun 24 20:56:42 2006
     4
     5  import wx
     6
     7 -class wxgIssueSelectionDlg(wx.Dialog):
     8 -    def __init__(self, *args, **kwds):
     9
    10          from Gnumed.wxpython import gmEMRStructWidgets
    11
    12          # begin wxGlade: wxgIssueSelectionDlg.__init__
    13          kwds["style"] = wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.MAXIMIZE_BOX|wx.MINIMIZE_BOX|wx.THICK_FRAME
    14          wx.Dialog.__init__(self, *args, **kwds)
    15          self._lbl_message = wx.StaticText(self, -1, _("Please select a health issue:"))
    16          self._PhWheel_issue = gmEMRStructWidgets.cIssueSelectionPhraseWheel(self, -1)
    17          self._BTN_OK = wx.Button(self, wx.ID_OK, _("OK"))
    18          self._BTN_dismiss = wx.Button(self, wx.ID_CANCEL, _("Close"))
    19
    20          self.__set_properties()
    21          self.__do_layout()
    22
    23          self.Bind(wx.EVT_BUTTON, self._on_OK_button_pressed, id=wx.ID_OK)
    24          # end wxGlade
    25
    26 -    def __set_properties(self):
    27          # begin wxGlade: wxgIssueSelectionDlg.__set_properties
    28          self.SetTitle(_("Health issue selector"))
    29          self.SetSize((300, 150))
    30          self._PhWheel_issue.SetFocus()
    31          self._BTN_OK.SetDefault()
    32          # end wxGlade
    33
    34 -    def __do_layout(self):
    35          # begin wxGlade: wxgIssueSelectionDlg.__do_layout
    36          _szr_main = wx.BoxSizer(wx.VERTICAL)
    37          _szr_buttons = wx.BoxSizer(wx.HORIZONTAL)
    38          _szr_main.Add(self._lbl_message, 1, wx.ALL|wx.EXPAND, 3)
    39          _szr_main.Add(self._PhWheel_issue, 0, wx.EXPAND, 0)
    40          _szr_buttons.Add(self._BTN_OK, 0, 0, 0)
    41          _szr_buttons.Add((20, 20), 1, wx.EXPAND, 0)
    42          _szr_buttons.Add(self._BTN_dismiss, 0, 0, 0)
    43          _szr_main.Add(_szr_buttons, 0, wx.EXPAND, 0)
    44          self.SetAutoLayout(True)
    45          self.SetSizer(_szr_main)
    46          self.Layout()
    47          self.Centre()
    48          # end wxGlade
    49
    50 -    def _on_OK_button_pressed(self, event): # wxGlade: wxgIssueSelectionDlg.<event_handler>
    51          print "Event handler `_on_OK_button_pressed' not implemented"
    52          event.Skip()
    53
    54  # end of class wxgIssueSelectionDlg
    55