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

Source Code for Module Gnumed.wxGladeWidgets.wxgVaccinationIndicationsPnl

  1  #!/usr/bin/env python 
  2  # -*- coding: utf-8 -*- 
  3  # generated by wxGlade 0.6.3 from "/home/ncq/Projekte/gm-git/gnumed/gnumed/client/wxg/wxgVaccinationIndicationsPnl2.wxg" 
  4   
  5  import wx 
  6   
  7  # begin wxGlade: extracode 
  8  # end wxGlade 
  9   
 10   
 11   
12 -class wxgVaccinationIndicationsPnl(wx.Panel):
13 - def __init__(self, *args, **kwds):
14 # begin wxGlade: wxgVaccinationIndicationsPnl.__init__ 15 kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL 16 wx.Panel.__init__(self, *args, **kwds) 17 self._CHBOX_tetanus = wx.CheckBox(self, -1, _("Tetanus")) 18 self._CHBOX_measles = wx.CheckBox(self, -1, _("Measles")) 19 self._CHBOX_diphtheria = wx.CheckBox(self, -1, _("Diphtheria")) 20 self._CHBOX_mumps = wx.CheckBox(self, -1, _("Mumps")) 21 self._CHBOX_influenza = wx.CheckBox(self, -1, _("Influenza")) 22 self._CHBOX_menA = wx.CheckBox(self, -1, _("A")) 23 self._CHBOX_menC = wx.CheckBox(self, -1, _("C")) 24 self._CHBOX_hepA = wx.CheckBox(self, -1, _("Hep A")) 25 self._CHBOX_pertussis = wx.CheckBox(self, -1, _("Pertussis")) 26 self._CHBOX_rubella = wx.CheckBox(self, -1, _("Rubella")) 27 self._CHBOX_pneumococcus = wx.CheckBox(self, -1, _("Pneumococc")) 28 self._CHBOX_menW = wx.CheckBox(self, -1, _("W")) 29 self._CHBOX_menY = wx.CheckBox(self, -1, _("Y")) 30 self._CHBOX_cholera = wx.CheckBox(self, -1, _("Cholera")) 31 self._CHBOX_polio = wx.CheckBox(self, -1, _("Poliomyelitis")) 32 self._CHBOX_varicella = wx.CheckBox(self, -1, _("Varicella")) 33 self._CHBOX_coxq = wx.CheckBox(self, -1, _("Cox (Q)")) 34 self._CHBOX_fsme = wx.CheckBox(self, -1, _("Tick Encep")) 35 self._CHBOX_typhoid = wx.CheckBox(self, -1, _("Typhoid")) 36 self._CHBOX_hib = wx.CheckBox(self, -1, _("HiB")) 37 self._CHBOX_h1n1 = wx.CheckBox(self, -1, _("H1N1")) 38 self._CHBOX_japanese = wx.CheckBox(self, -1, _("Jap B")) 39 self._CHBOX_rota = wx.CheckBox(self, -1, _("Rotavirus")) 40 self._CHBOX_hepB = wx.CheckBox(self, -1, _("Hep B")) 41 self._CHBOX_hpv = wx.CheckBox(self, -1, _("HPV")) 42 self._CHBOX_tuberculosis = wx.CheckBox(self, -1, _("Tuberculosis")) 43 self._CHBOX_rabies = wx.CheckBox(self, -1, _("Rabies")) 44 self._CHBOX_yellow_fever = wx.CheckBox(self, -1, _("Yellow fever")) 45 self._CHBOX_anthrax = wx.CheckBox(self, -1, _("Anthrax")) 46 self._CHBOX_yersinia_pestis = wx.CheckBox(self, -1, _("Plague")) 47 self._CHBOX_smallpox = wx.CheckBox(self, -1, _("Smallpox")) 48 49 self.__set_properties() 50 self.__do_layout()
51 # end wxGlade 52
53 - def __set_properties(self):
54 # begin wxGlade: wxgVaccinationIndicationsPnl.__set_properties 55 self._CHBOX_diphtheria.SetToolTipString(_("Regardless of childhood/adult toxoid content.")) 56 self._CHBOX_influenza.SetToolTipString(_("Seasonal influenza")) 57 self._CHBOX_menA.SetToolTipString(_("Meningococcus A")) 58 self._CHBOX_menC.SetToolTipString(_("Meningococcus C")) 59 self._CHBOX_pneumococcus.SetToolTipString(_("Pneumococcus")) 60 self._CHBOX_menW.SetToolTipString(_("Meningococcus W")) 61 self._CHBOX_menY.SetToolTipString(_("Meningococcus Y")) 62 self._CHBOX_varicella.SetToolTipString(_("Varicella zoster (shingles)")) 63 self._CHBOX_coxq.SetToolTipString(_("Coxiella burnetii (Q fever)")) 64 self._CHBOX_fsme.SetToolTipString(_("Tick-borne meningoencephalitis")) 65 self._CHBOX_typhoid.SetToolTipString(_("Salmonella typhi (typhoid)")) 66 self._CHBOX_hib.SetToolTipString(_("HiB: Haemophilus influenzae B")) 67 self._CHBOX_h1n1.SetToolTipString(_("H1N1 influenza")) 68 self._CHBOX_japanese.SetToolTipString(_("Japanese B encephalitis")) 69 self._CHBOX_hpv.SetToolTipString(_("Human papilloma virus")) 70 self._CHBOX_anthrax.SetToolTipString(_("Bacillus anthracis")) 71 self._CHBOX_yersinia_pestis.SetToolTipString(_("Yersinia pestis")) 72 self._CHBOX_smallpox.SetToolTipString(_("Variola virus"))
73 # end wxGlade 74
75 - def __do_layout(self):
76 # begin wxGlade: wxgVaccinationIndicationsPnl.__do_layout 77 __gszr_indications = wx.FlexGridSizer(8, 5, 2, 2) 78 __szr_menWY = wx.BoxSizer(wx.HORIZONTAL) 79 __szr_menAC = wx.BoxSizer(wx.HORIZONTAL) 80 __gszr_indications.Add(self._CHBOX_tetanus, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 81 __gszr_indications.Add(self._CHBOX_measles, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 82 __lbl_resp = wx.StaticText(self, -1, _("<--Resp-->"), style=wx.ALIGN_CENTRE) 83 __gszr_indications.Add(__lbl_resp, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL, 0) 84 __lbl_neuro = wx.StaticText(self, -1, _("<--Neuro-->"), style=wx.ALIGN_CENTRE) 85 __gszr_indications.Add(__lbl_neuro, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL, 0) 86 __lbl_gi = wx.StaticText(self, -1, _("<--GI-->"), style=wx.ALIGN_CENTRE) 87 __gszr_indications.Add(__lbl_gi, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL, 0) 88 __gszr_indications.Add(self._CHBOX_diphtheria, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 89 __gszr_indications.Add(self._CHBOX_mumps, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 90 __gszr_indications.Add(self._CHBOX_influenza, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 91 __szr_menAC.Add(self._CHBOX_menA, 1, wx.RIGHT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 2) 92 __szr_menAC.Add(self._CHBOX_menC, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 93 __gszr_indications.Add(__szr_menAC, 1, wx.ALIGN_CENTER_VERTICAL, 5) 94 __gszr_indications.Add(self._CHBOX_hepA, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 95 __gszr_indications.Add(self._CHBOX_pertussis, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 96 __gszr_indications.Add(self._CHBOX_rubella, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 97 __gszr_indications.Add(self._CHBOX_pneumococcus, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 10) 98 __szr_menWY.Add(self._CHBOX_menW, 1, wx.RIGHT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 2) 99 __szr_menWY.Add(self._CHBOX_menY, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 100 __gszr_indications.Add(__szr_menWY, 1, wx.ALIGN_CENTER_VERTICAL, 5) 101 __gszr_indications.Add(self._CHBOX_cholera, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 102 __gszr_indications.Add(self._CHBOX_polio, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 103 __gszr_indications.Add(self._CHBOX_varicella, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 104 __gszr_indications.Add(self._CHBOX_coxq, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 105 __gszr_indications.Add(self._CHBOX_fsme, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 106 __gszr_indications.Add(self._CHBOX_typhoid, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 107 __gszr_indications.Add(self._CHBOX_hib, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 108 __gszr_indications.Add((20, 20), 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 109 __gszr_indications.Add(self._CHBOX_h1n1, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 110 __gszr_indications.Add(self._CHBOX_japanese, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 111 __gszr_indications.Add(self._CHBOX_rota, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 112 __gszr_indications.Add(self._CHBOX_hepB, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 113 __gszr_indications.Add(self._CHBOX_hpv, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 114 __gszr_indications.Add(self._CHBOX_tuberculosis, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 115 __gszr_indications.Add(self._CHBOX_rabies, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 116 __gszr_indications.Add((20, 20), 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 117 __gszr_indications.Add((20, 20), 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 118 __gszr_indications.Add((20, 20), 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 119 __gszr_indications.Add((20, 20), 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 120 __gszr_indications.Add((20, 20), 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 121 __gszr_indications.Add((20, 20), 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 122 __lbl_other = wx.StaticText(self, -1, _("Other:")) 123 __gszr_indications.Add(__lbl_other, 0, wx.ALIGN_CENTER_VERTICAL, 10) 124 __gszr_indications.Add(self._CHBOX_yellow_fever, 0, wx.RIGHT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 125 __gszr_indications.Add(self._CHBOX_anthrax, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 126 __gszr_indications.Add(self._CHBOX_yersinia_pestis, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 127 __gszr_indications.Add(self._CHBOX_smallpox, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 128 self.SetSizer(__gszr_indications) 129 __gszr_indications.Fit(self)
130 # end wxGlade 131 132 # end of class wxgVaccinationIndicationsPnl 133