Gnumed.wxGladeWidgets.wxgWaitingListEntryEditAreaPnl

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

# Source Code for Module Gnumed.wxGladeWidgets.wxgWaitingListEntryEditAreaPnl

     1  #!/usr/bin/env python
     2  # -*- coding: utf8 -*-
     3  # generated by wxGlade 0.6.3 from "/home/ncq/Projekte/gm-cvs/branches/HEAD/gnumed/gnumed/client/wxg/wxgWaitingListEntryEditAreaPnl.wxg"
     4
     5  import wx
     6
     7  # begin wxGlade: extracode
     8  # end wxGlade
     9
    10
    11
    12 -class wxgWaitingListEntryEditAreaPnl(wx.ScrolledWindow):
    13 -    def __init__(self, *args, **kwds):
    14
    15          from Gnumed.wxpython import gmPatSearchWidgets, gmWaitingListWidgets
    16
    17          # begin wxGlade: wxgWaitingListEntryEditAreaPnl.__init__
    18          kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL
    19          wx.Panel.__init__(self, *args, **kwds)
    20          self._PRW_patient = gmPatSearchWidgets.cPersonSearchCtrl(self, -1, "", style=wx.NO_BORDER)
    21          self._TCTRL_comment = wx.TextCtrl(self, -1, "", style=wx.TE_MULTILINE|wx.TE_WORDWRAP|wx.NO_BORDER)
    22          self._PRW_zone = gmWaitingListWidgets.cWaitingZonePhraseWheel(self, -1, "", style=wx.NO_BORDER)
    23          self._SPCTRL_urgency = wx.SpinCtrl(self, -1, "0", min=0, max=10, style=wx.NO_BORDER)
    24
    25          self.__set_properties()
    26          self.__do_layout()
    27          # end wxGlade
    28
    29 -    def __set_properties(self):
    30          # begin wxGlade: wxgWaitingListEntryEditAreaPnl.__set_properties
    31          self._PRW_patient.SetToolTipString(_("Waiting list details for this patient."))
    32          self._TCTRL_comment.SetToolTipString(_("What is the patient here for. Could be the Reason for Encounter."))
    33          self._TCTRL_comment.SetFocus()
    34          self._PRW_zone.SetToolTipString(_("Select or enter the zone the patient is waiting in."))
    35          self._SPCTRL_urgency.SetToolTipString(_("Select the urgency for this patient.\n\nDefault is 0. Range is 0-10.\nHigher values mean higher urgency."))
    36          # end wxGlade
    37
    38 -    def __do_layout(self):
    39          # begin wxGlade: wxgWaitingListEntryEditAreaPnl.__do_layout
    40          _gszr_main = wx.FlexGridSizer(3, 2, 3, 5)
    41          __szr_options = wx.BoxSizer(wx.HORIZONTAL)
    42          __lbl_patient = wx.StaticText(self, -1, _("Patient"))
    43          _gszr_main.Add(__lbl_patient, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    44          _gszr_main.Add(self._PRW_patient, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    45          __lbl_comment = wx.StaticText(self, -1, _("Comment"))
    46          _gszr_main.Add(__lbl_comment, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    47          _gszr_main.Add(self._TCTRL_comment, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    48          __lbl_options = wx.StaticText(self, -1, "")
    49          _gszr_main.Add(__lbl_options, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    50          __lbl_zone = wx.StaticText(self, -1, _("&Zone:"))
    51          __szr_options.Add(__lbl_zone, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 5)
    52          __szr_options.Add(self._PRW_zone, 1, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 10)
    53          __lbl_urgency = wx.StaticText(self, -1, _("&Urgency:"))
    54          __szr_options.Add(__lbl_urgency, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 5)
    55          __szr_options.Add(self._SPCTRL_urgency, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    56          __szr_options.Add((20, 20), 1, wx.EXPAND, 0)
    57          _gszr_main.Add(__szr_options, 1, wx.EXPAND, 0)
    58          self.SetSizer(_gszr_main)
    59          _gszr_main.Fit(self)
    60          _gszr_main.AddGrowableRow(1)
    61          _gszr_main.AddGrowableCol(1)
    62          # end wxGlade
    63
    64  # end of class wxgWaitingListEntryEditAreaPnl
    65