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

# Source Code for Module Gnumed.wxGladeWidgets.wxgPatientOverviewPnl

     1  # -*- coding: UTF-8 -*-
     2  #
     3  # generated by wxGlade
     4  #
     5
     6  import wx
     7
     8  # begin wxGlade: dependencies
     9  import gettext
    10  # end wxGlade
    11
    12  # begin wxGlade: extracode
    13  from Gnumed.wxpython.gmListWidgets import cReportListCtrl
    14  from Gnumed.wxpython.gmDateTimeInput import cIntervalPhraseWheel
    15  # end wxGlade
    16
    17
    18 -class wxgPatientOverviewPnl(wx.ScrolledWindow):
    19 -        def __init__(self, *args, **kwds):
    20                  # begin wxGlade: wxgPatientOverviewPnl.__init__
    21                  kwds["style"] = kwds.get("style", 0) | wx.TAB_TRAVERSAL
    22                  wx.ScrolledWindow.__init__(self, *args, **kwds)
    23                  self.SetSize((400, 300))
    24                  self._LCTRL_identity = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_SIMPLE | wx.LC_NO_HEADER | wx.LC_REPORT)
    25                  self._LCTRL_contacts = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_SIMPLE | wx.LC_NO_HEADER | wx.LC_REPORT)
    26                  self._LCTRL_encounters = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_SIMPLE | wx.LC_NO_HEADER | wx.LC_REPORT)
    27                  self._LCTRL_meds = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_SIMPLE | wx.LC_NO_HEADER | wx.LC_REPORT)
    28                  self._LCTRL_problems = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_SIMPLE | wx.LC_NO_HEADER | wx.LC_REPORT)
    29                  self._LCTRL_history = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_SIMPLE | wx.LC_NO_HEADER | wx.LC_REPORT)
    30                  self._LCTRL_inbox = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_SIMPLE | wx.LC_NO_HEADER | wx.LC_REPORT)
    31                  self._LCTRL_results = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_SIMPLE | wx.LC_NO_HEADER | wx.LC_REPORT)
    32                  self._LCTRL_documents = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_SIMPLE | wx.LC_NO_HEADER | wx.LC_REPORT)
    33
    34                  self.__set_properties()
    35                  self.__do_layout()
    36                  # end wxGlade
    37
    38 -        def __set_properties(self):
    39                  # begin wxGlade: wxgPatientOverviewPnl.__set_properties
    40                  self.SetSize((400, 300))
    41                  self.SetScrollRate(10, 10)
    42                  self._LCTRL_problems.SetBackgroundColour(wx.Colour(255, 238, 180))
    43                  # end wxGlade
    44
    45 -        def __do_layout(self):
    46                  # begin wxGlade: wxgPatientOverviewPnl.__do_layout
    47                  self._SZR_main = wx.BoxSizer(wx.HORIZONTAL)
    48                  __szr_right = wx.BoxSizer(wx.VERTICAL)
    49                  __szr_middle = wx.BoxSizer(wx.VERTICAL)
    50                  __szr_left = wx.BoxSizer(wx.VERTICAL)
    51                  __lbl_identity = wx.StaticText(self, wx.ID_ANY, _("Identity:"))
    52                  __szr_left.Add(__lbl_identity, 0, wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 3)
    53                  __szr_left.Add(self._LCTRL_identity, 1, wx.BOTTOM | wx.EXPAND, 5)
    54                  __lbl_contacts = wx.StaticText(self, wx.ID_ANY, _("Contacts:"))
    55                  __szr_left.Add(__lbl_contacts, 0, wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 3)
    56                  __szr_left.Add(self._LCTRL_contacts, 1, wx.BOTTOM | wx.EXPAND, 5)
    57                  __lbl_encounters = wx.StaticText(self, wx.ID_ANY, _("Activity:"))
    58                  __szr_left.Add(__lbl_encounters, 0, wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 1)
    59                  __szr_left.Add(self._LCTRL_encounters, 1, wx.EXPAND, 5)
    60                  self._SZR_main.Add(__szr_left, 1, wx.EXPAND | wx.RIGHT, 5)
    61                  __lbl_meds = wx.StaticText(self, wx.ID_ANY, _("Current meds and substances:"))
    62                  __szr_middle.Add(__lbl_meds, 0, wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 3)
    63                  __szr_middle.Add(self._LCTRL_meds, 2, wx.BOTTOM | wx.EXPAND, 5)
    64                  __lbl_problem_list = wx.StaticText(self, wx.ID_ANY, _("Active Problems:"))
    65                  __szr_middle.Add(__lbl_problem_list, 0, wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 3)
    66                  __szr_middle.Add(self._LCTRL_problems, 2, wx.BOTTOM | wx.EXPAND, 5)
    67                  __lbl_history = wx.StaticText(self, wx.ID_ANY, _("History:"))
    68                  __szr_middle.Add(__lbl_history, 0, wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 3)
    69                  __szr_middle.Add(self._LCTRL_history, 3, wx.EXPAND, 5)
    70                  self._SZR_main.Add(__szr_middle, 1, wx.EXPAND | wx.RIGHT, 5)
    71                  __lbl_inbox = wx.StaticText(self, wx.ID_ANY, _("Reminders:"))
    72                  __szr_right.Add(__lbl_inbox, 0, wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 3)
    73                  __szr_right.Add(self._LCTRL_inbox, 3, wx.BOTTOM | wx.EXPAND, 5)
    74                  __lbl_measurements = wx.StaticText(self, wx.ID_ANY, _("Measurements:"))
    75                  __szr_right.Add(__lbl_measurements, 0, wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 3)
    76                  __szr_right.Add(self._LCTRL_results, 2, wx.BOTTOM | wx.EXPAND, 5)
    77                  __lbl_documents = wx.StaticText(self, wx.ID_ANY, _("Documents:"))
    78                  __szr_right.Add(__lbl_documents, 0, wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 3)
    79                  __szr_right.Add(self._LCTRL_documents, 2, wx.EXPAND, 5)
    80                  self._SZR_main.Add(__szr_right, 1, wx.EXPAND, 0)
    81                  self.SetSizer(self._SZR_main)
    82                  self.Layout()
    83                  # end wxGlade
    84
    85  # end of class wxgPatientOverviewPnl
    86