Gnumed.wxGladeWidgets.wxgAllergyEditAreaPnl

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

# Source Code for Module Gnumed.wxGladeWidgets.wxgAllergyEditAreaPnl

     1  #!/usr/bin/env python
     2  # -*- coding: ISO-8859-15 -*-
     3  # generated by wxGlade 0.4.1 on Sat Mar 10 13:28:37 2007
     4
     5  import wx
     6
     7 -class wxgAllergyEditAreaPnl(wx.ScrolledWindow):
     8 -    def __init__(self, *args, **kwds):
     9
    10          from Gnumed.wxpython import gmPhraseWheel, gmDateTimeInput
    11
    12          # begin wxGlade: wxgAllergyEditAreaPnl.__init__
    13          kwds["style"] = wx.NO_BORDER | wx.TAB_TRAVERSAL
    14          wx.ScrolledWindow.__init__(self, *args, **kwds)
    15          self._DPRW_date_noted = gmDateTimeInput.cFuzzyTimestampInput(self, -1, "", style=wx.NO_BORDER)
    16          self._PRW_trigger = gmPhraseWheel.cPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    17          self._TCTRL_brand_name = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
    18          self._TCTRL_generic = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
    19          self._ChBOX_generic_specific = wx.CheckBox(self, -1, _("&Tolerates others in class"))
    20          self._TCTRL_atc_classes = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
    21          self._PRW_reaction = gmPhraseWheel.cPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    22          self._RBTN_type_allergy = wx.RadioButton(self, -1, _("&Allergy"), style=wx.RB_GROUP)
    23          self._RBTN_type_sensitivity = wx.RadioButton(self, -1, _("&Sensitivity"))
    24          self._ChBOX_definite = wx.CheckBox(self, -1, _("&Definite"))
    25
    26          self.__set_properties()
    27          self.__do_layout()
    28          # end wxGlade
    29
    30 -    def __set_properties(self):
    31          # begin wxGlade: wxgAllergyEditAreaPnl.__set_properties
    32          self.SetScrollRate(10, 10)
    33          self._DPRW_date_noted.SetToolTipString(_("When did the patient notice onset of the reaction.\n\nIf unknown use the date when it was reported to you."))
    34          self._PRW_trigger.SetToolTipString(_("What is reported to be the trigger for the reaction. Can be\n- a drug (brand name, generic, constrast media, ...)\n- a chemical (household, job related)\n- an animal (cat fur, lice, ...)\n- a metal (CrNi, ...)\n- a foodstuff (lactose, ...)\n- a type of pollen (birch, ...)\n- ..."))
    35          self._TCTRL_brand_name.SetToolTipString(_("Brand name if a drug is entered as the trigger."))
    36          self._TCTRL_brand_name.Enable(False)
    37          self._TCTRL_generic.SetToolTipString(_("Brand name if a drug is entered as the trigger."))
    38          self._TCTRL_generic.Enable(False)
    39          self._ChBOX_generic_specific.SetToolTipString(_("Check if this reaction applies to this drug/generic only, not the entire drug class."))
    40          self._TCTRL_atc_classes.SetToolTipString(_("Displays drug classe(s) along with their ATC code."))
    41          self._TCTRL_atc_classes.Enable(False)
    42          self._PRW_reaction.SetToolTipString(_("Document signs and symptoms. If reaction is to a drug also document time of onset after drug administration (<24h, 24-72h, >72h)."))
    43          self._RBTN_type_allergy.SetToolTipString(_("Select this if the reaction is an allergy."))
    44          self._RBTN_type_allergy.SetValue(1)
    45          self._RBTN_type_sensitivity.SetToolTipString(_("Select this if the reaction is a sensitivity."))
    46          self._ChBOX_definite.SetToolTipString(_("Check this if this allergy/intolerance is known to exist for sure as opposed to suspected."))
    47          self._ChBOX_definite.SetValue(1)
    48          # end wxGlade
    49
    50 -    def __do_layout(self):
    51          # begin wxGlade: wxgAllergyEditAreaPnl.__do_layout
    52          _gszr_main = wx.FlexGridSizer(7, 2, 1, 3)
    53          __szr_reaction_type = wx.BoxSizer(wx.HORIZONTAL)
    54          __szr_generic = wx.BoxSizer(wx.HORIZONTAL)
    55          __lbl_date_noted = wx.StaticText(self, -1, _("Onset"))
    56          _gszr_main.Add(__lbl_date_noted, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    57          _gszr_main.Add(self._DPRW_date_noted, 0, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0)
    58          __lbl_trigger = wx.StaticText(self, -1, _("Trigger"))
    59          _gszr_main.Add(__lbl_trigger, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    60          _gszr_main.Add(self._PRW_trigger, 0, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0)
    61          __lbl_brand_name = wx.StaticText(self, -1, _("Brand Name"))
    62          _gszr_main.Add(__lbl_brand_name, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    63          _gszr_main.Add(self._TCTRL_brand_name, 0, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0)
    64          __lbl_generic = wx.StaticText(self, -1, _("Generics"))
    65          _gszr_main.Add(__lbl_generic, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    66          __szr_generic.Add(self._TCTRL_generic, 1, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0)
    67          __szr_generic.Add(self._ChBOX_generic_specific, 0, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0)
    68          _gszr_main.Add(__szr_generic, 1, wx.EXPAND, 0)
    69          __lbl_atc_classes = wx.StaticText(self, -1, _("Drug Classes"))
    70          _gszr_main.Add(__lbl_atc_classes, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    71          _gszr_main.Add(self._TCTRL_atc_classes, 0, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0)
    72          __lbl_reaction = wx.StaticText(self, -1, _("Reaction"))
    73          __lbl_reaction.SetToolTipString(_("Document signs and symptoms. If reaction is to a drug also document time of onset after drug administration (<24h, 24-72h, >72h)."))
    74          _gszr_main.Add(__lbl_reaction, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    75          _gszr_main.Add(self._PRW_reaction, 0, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0)
    76          __lbl_reaction_type = wx.StaticText(self, -1, _("Reaction Type"))
    77          _gszr_main.Add(__lbl_reaction_type, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    78          __szr_reaction_type.Add(self._RBTN_type_allergy, 0, wx.RIGHT | wx.ALIGN_CENTER_VERTICAL, 5)
    79          __szr_reaction_type.Add(self._RBTN_type_sensitivity, 0, wx.RIGHT | wx.ALIGN_CENTER_VERTICAL, 15)
    80          __szr_reaction_type.Add(self._ChBOX_definite, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    81          _gszr_main.Add(__szr_reaction_type, 1, wx.EXPAND, 0)
    82          self.SetSizer(_gszr_main)
    83          _gszr_main.Fit(self)
    84          _gszr_main.AddGrowableCol(1)
    85          # end wxGlade
    86
    87  # end of class wxgAllergyEditAreaPnl
    88