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

Source Code for Module Gnumed.wxGladeWidgets.wxgHealthIssueEditAreaPnl

  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/wxgHealthIssueEditAreaPnl.wxg" 
  4   
  5  import wx 
  6   
  7  # begin wxGlade: extracode 
  8  # end wxGlade 
  9   
 10   
 11   
12 -class wxgHealthIssueEditAreaPnl(wx.ScrolledWindow):
13 - def __init__(self, *args, **kwds):
14 15 from Gnumed.wxpython import gmPhraseWheel, gmDateTimeInput, gmEMRStructWidgets 16 17 # begin wxGlade: wxgHealthIssueEditAreaPnl.__init__ 18 kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL 19 wx.ScrolledWindow.__init__(self, *args, **kwds) 20 self._PRW_condition = gmPhraseWheel.cPhraseWheel(self, -1, "", style=wx.NO_BORDER) 21 self._ChBOX_left = wx.CheckBox(self, -1, _("left")) 22 self._ChBOX_right = wx.CheckBox(self, -1, _("right")) 23 self._PRW_classification = gmEMRStructWidgets.cDiagnosticCertaintyClassificationPhraseWheel(self, -1, "", style=wx.NO_BORDER) 24 self._PRW_grouping = gmPhraseWheel.cPhraseWheel(self, -1, "", style=wx.NO_BORDER) 25 self._TCTRL_summary = wx.TextCtrl(self, -1, "", style=wx.TE_MULTILINE|wx.TE_WORDWRAP|wx.NO_BORDER) 26 self._PRW_age_noted = gmPhraseWheel.cPhraseWheel(self, -1, "", style=wx.NO_BORDER) 27 self._PRW_year_noted = gmDateTimeInput.cFuzzyTimestampInput(self, -1, "", style=wx.NO_BORDER) 28 self._ChBOX_active = wx.CheckBox(self, -1, _("Active")) 29 self._ChBOX_relevant = wx.CheckBox(self, -1, _("Relevant")) 30 self._ChBOX_is_operation = wx.CheckBox(self, -1, _("Operation")) 31 self._ChBOX_confidential = wx.CheckBox(self, -1, _("Confidential")) 32 self._ChBOX_caused_death = wx.CheckBox(self, -1, _("Caused death")) 33 34 self.__set_properties() 35 self.__do_layout()
36 # end wxGlade 37
38 - def __set_properties(self):
39 # begin wxGlade: wxgHealthIssueEditAreaPnl.__set_properties 40 self.SetScrollRate(10, 10) 41 self._PRW_condition.SetToolTipString(_("Enter the condition (health issue/past history item) here. Keep it short but precise.")) 42 self._PRW_grouping.SetToolTipString(_("Here you can add arbitrary text which will be used for sorting health issues in the tree.")) 43 self._TCTRL_summary.SetToolTipString(_("The current status or a summary of the issue.")) 44 self._PRW_age_noted.SetToolTipString(_("Enter the age in years when this condition was diagnosed. Setting this will adjust the \"in the year\" field accordingly.")) 45 self._PRW_year_noted.SetToolTipString(_("Enter the year when this condition was diagnosed. Setting this will adjust the \"at age\" field accordingly.")) 46 self._ChBOX_active.SetToolTipString(_("Check if this is an active, ongoing problem.")) 47 self._ChBOX_relevant.SetToolTipString(_("Check if this is a clinically relevant problem.")) 48 self._ChBOX_relevant.SetValue(1) 49 self._ChBOX_is_operation.SetToolTipString(_("Check if this is an operated-on condition (eg. appendectomy).")) 50 self._ChBOX_confidential.SetToolTipString(_("Check if this condition is to be kept confidential and not disclosed to anyone else.")) 51 self._ChBOX_caused_death.SetToolTipString(_("Check if this condition contributed to causing death of the patient."))
52 # end wxGlade 53
54 - def __do_layout(self):
55 # begin wxGlade: wxgHealthIssueEditAreaPnl.__do_layout 56 __gszr_main = wx.FlexGridSizer(5, 2, 3, 10) 57 __szr_options = wx.BoxSizer(wx.HORIZONTAL) 58 __szr_diagnosed = wx.BoxSizer(wx.HORIZONTAL) 59 __szr_certainty_grouping = wx.BoxSizer(wx.HORIZONTAL) 60 __szr_condition = wx.BoxSizer(wx.HORIZONTAL) 61 __lbl_condition = wx.StaticText(self, -1, _("Condition")) 62 __lbl_condition.SetForegroundColour(wx.Colour(255, 0, 0)) 63 __gszr_main.Add(__lbl_condition, 0, wx.ALIGN_CENTER_VERTICAL, 0) 64 __szr_condition.Add(self._PRW_condition, 1, wx.RIGHT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 10) 65 __szr_condition.Add(self._ChBOX_left, 0, wx.RIGHT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 66 __szr_condition.Add(self._ChBOX_right, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 67 __gszr_main.Add(__szr_condition, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 68 __lbl_certainty = wx.StaticText(self, -1, _("Certainty")) 69 __gszr_main.Add(__lbl_certainty, 0, wx.ALIGN_CENTER_VERTICAL, 0) 70 __szr_certainty_grouping.Add(self._PRW_classification, 1, wx.RIGHT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 10) 71 __lbl_group = wx.StaticText(self, -1, _("Grouping:")) 72 __szr_certainty_grouping.Add(__lbl_group, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 5) 73 __szr_certainty_grouping.Add(self._PRW_grouping, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 10) 74 __gszr_main.Add(__szr_certainty_grouping, 1, wx.EXPAND, 0) 75 __lbl_summary = wx.StaticText(self, -1, _("Summary")) 76 __gszr_main.Add(__lbl_summary, 0, wx.ALIGN_CENTER_VERTICAL, 0) 77 __gszr_main.Add(self._TCTRL_summary, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 78 __lbl_noted = wx.StaticText(self, -1, _("When Noted")) 79 __gszr_main.Add(__lbl_noted, 0, wx.ALIGN_CENTER_VERTICAL, 0) 80 __lbl_age = wx.StaticText(self, -1, _("Age:"), style=wx.ALIGN_RIGHT) 81 __szr_diagnosed.Add(__lbl_age, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 5) 82 __szr_diagnosed.Add(self._PRW_age_noted, 1, wx.RIGHT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 83 __lbl_year = wx.StaticText(self, -1, _("Or year:"), style=wx.ALIGN_RIGHT) 84 __szr_diagnosed.Add(__lbl_year, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 5) 85 __szr_diagnosed.Add(self._PRW_year_noted, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 86 __gszr_main.Add(__szr_diagnosed, 1, wx.EXPAND, 0) 87 __gszr_main.Add((1, 1), 0, wx.EXPAND, 0) 88 __szr_options.Add(self._ChBOX_active, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 89 __szr_options.Add(self._ChBOX_relevant, 0, wx.LEFT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 90 __szr_options.Add(self._ChBOX_is_operation, 0, wx.LEFT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 91 __szr_options.Add(self._ChBOX_confidential, 0, wx.LEFT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 92 __szr_options.Add(self._ChBOX_caused_death, 0, wx.LEFT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 93 __gszr_main.Add(__szr_options, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 94 self.SetSizer(__gszr_main) 95 __gszr_main.Fit(self) 96 __gszr_main.AddGrowableRow(2) 97 __gszr_main.AddGrowableCol(1)
98 # end wxGlade 99 100 # end of class wxgHealthIssueEditAreaPnl 101