def __init__(self, *args, **kwds): #from Gnumed.wxpython.gmFamilyHistoryWidgets import cFamilyHistoryRelationType from Gnumed.wxpython.gmEMRStructWidgets import cEpisodeSelectionPhraseWheel from Gnumed.wxpython.gmDateTimeInput import cIntervalPhraseWheel from Gnumed.wxpython.gmDateTimeInput import cDateInputPhraseWheel from Gnumed.wxpython.gmGuiHelpers import cThreeValuedLogicPhraseWheel from Gnumed.wxpython.gmPhraseWheel import cPhraseWheel from Gnumed.wxpython.gmFamilyHistoryWidgets import cRelationshipTypePhraseWheel from Gnumed.wxpython.gmCodingWidgets import cGenericCodesPhraseWheel # begin wxGlade: wxgFamilyHistoryEAPnl.__init__ kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL wx.ScrolledWindow.__init__(self, *args, **kwds) self._PRW_relationship = cRelationshipTypePhraseWheel(self, -1, "", style=wx.NO_BORDER) self._PRW_condition = cPhraseWheel(self, -1, "", style=wx.NO_BORDER) self._PRW_codes = cGenericCodesPhraseWheel(self, -1, "", style=wx.NO_BORDER) self._TCTRL_age_of_onset = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER) self._PRW_died_of_this = cThreeValuedLogicPhraseWheel(self, -1, "", style=wx.NO_BORDER) self._PRW_age_of_death = cIntervalPhraseWheel(self, -1, "", style=wx.NO_BORDER) self._PRW_episode = cEpisodeSelectionPhraseWheel(self, -1, "", style=wx.NO_BORDER) self._TCTRL_name = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER) self._PRW_dob = cDateInputPhraseWheel(self, -1, "", style=wx.NO_BORDER) self._TCTRL_comment = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER) self.__set_properties() self.__do_layout()
def __init__(self, *args, **kwds): from Gnumed.wxpython.gmListWidgets import cReportListCtrl from Gnumed.wxpython import gmDateTimeInput # begin wxGlade: wxgPatientOverviewPnl.__init__ kwds["style"] = wx.TAB_TRAVERSAL wx.ScrolledWindow.__init__(self, *args, **kwds) self._LCTRL_identity = cReportListCtrl( self, wx.ID_ANY, style=wx.LC_REPORT | wx.LC_NO_HEADER | wx.SIMPLE_BORDER) self._LCTRL_contacts = cReportListCtrl( self, wx.ID_ANY, style=wx.LC_REPORT | wx.LC_NO_HEADER | wx.SIMPLE_BORDER) self._PRW_encounter_range = gmDateTimeInput.cIntervalPhraseWheel( self, wx.ID_ANY, "", style=wx.NO_BORDER) self._LCTRL_encounters = cReportListCtrl( self, wx.ID_ANY, style=wx.LC_REPORT | wx.LC_NO_HEADER | wx.SIMPLE_BORDER) self._LCTRL_meds = cReportListCtrl(self, wx.ID_ANY, style=wx.LC_REPORT | wx.LC_NO_HEADER | wx.SIMPLE_BORDER) self._LCTRL_problems = cReportListCtrl( self, wx.ID_ANY, style=wx.LC_REPORT | wx.LC_NO_HEADER | wx.SIMPLE_BORDER) self._LCTRL_history = cReportListCtrl( self, wx.ID_ANY, style=wx.LC_REPORT | wx.LC_NO_HEADER | wx.SIMPLE_BORDER) self._LCTRL_inbox = cReportListCtrl( self, wx.ID_ANY, style=wx.LC_REPORT | wx.LC_NO_HEADER | wx.SIMPLE_BORDER) self._LCTRL_results = cReportListCtrl( self, wx.ID_ANY, style=wx.LC_REPORT | wx.LC_NO_HEADER | wx.SIMPLE_BORDER) self._LCTRL_documents = cReportListCtrl( self, wx.ID_ANY, style=wx.LC_REPORT | wx.LC_NO_HEADER | wx.SIMPLE_BORDER) self.__set_properties() self.__do_layout()
def __init__(self, *args, **kwds): # begin wxGlade: wxgCurrentMedicationEAPnl.__init__ kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL wx.ScrolledWindow.__init__(self, *args, **kwds) self._LBL_allergies = wx.StaticText(self, wx.ID_ANY, "") self._PRW_drug = cSubstanceIntakeObjectPhraseWheel(self, wx.ID_ANY, "") self._LBL_drug_details = wx.StaticText(self, wx.ID_ANY, "") self._BTN_heart = wx.Button(self, wx.ID_ANY, _(u"\u2665"), style=wx.BU_EXACTFIT) self._BTN_kidneys = wx.Button(self, wx.ID_ANY, _("Kidneys"), style=wx.BU_EXACTFIT) self._BTN_manage_products = wx.Button(self, wx.ID_ANY, _("Drugs"), style=wx.BU_EXACTFIT) self._BTN_manage_component = wx.Button(self, wx.ID_ANY, _("Components"), style=wx.BU_EXACTFIT) self._BTN_manage_doses = wx.Button(self, wx.ID_ANY, _("Doses"), style=wx.BU_EXACTFIT) self._BTN_manage_substance = wx.Button(self, wx.ID_ANY, _("Substances"), style=wx.BU_EXACTFIT) self._CHBOX_start_unknown = wx.CheckBox(self, wx.ID_ANY, _("&Unknown - or Date:")) self._DP_started = cDateInputPhraseWheel(self, wx.ID_ANY, "") self._PRW_start_certainty = cPhraseWheel(self, wx.ID_ANY, "") self._CHBOX_approved = wx.CheckBox(self, wx.ID_ANY, _("Approved of")) self._PRW_episode = cEpisodeSelectionPhraseWheel(self, wx.ID_ANY, "") self._PRW_schedule = cSubstanceSchedulePhraseWheel(self, wx.ID_ANY, "") self._PRW_duration = cIntervalPhraseWheel(self, wx.ID_ANY, "") self._CHBOX_long_term = wx.CheckBox(self, wx.ID_ANY, _("Long-term")) self._PRW_aim = cSubstanceAimPhraseWheel(self, wx.ID_ANY, "") self._PRW_notes = cPhraseWheel(self, wx.ID_ANY, "") self._DP_discontinued = cDateInputPhraseWheel(self, wx.ID_ANY, "") self._BTN_discontinued_as_planned = wx.Button(self, wx.ID_ANY, _("Per plan"), style=wx.BU_EXACTFIT) self._LBL_reason = wx.StaticText(self, wx.ID_ANY, _("... Reason")) self._PRW_discontinue_reason = cPhraseWheel(self, wx.ID_ANY, "") self.__set_properties() self.__do_layout() self.Bind(wx.EVT_BUTTON, self._on_heart_button_pressed, self._BTN_heart) self.Bind(wx.EVT_BUTTON, self._on_kidneys_button_pressed, self._BTN_kidneys) self.Bind(wx.EVT_BUTTON, self._on_manage_drug_products_button_pressed, self._BTN_manage_products) self.Bind(wx.EVT_BUTTON, self._on_manage_components_button_pressed, self._BTN_manage_component) self.Bind(wx.EVT_BUTTON, self._on_manage_doses_button_pressed, self._BTN_manage_doses) self.Bind(wx.EVT_BUTTON, self._on_manage_substances_button_pressed, self._BTN_manage_substance) self.Bind(wx.EVT_CHECKBOX, self._on_start_unknown_checked, self._CHBOX_start_unknown) self.Bind(wx.EVT_CHECKBOX, self._on_chbox_long_term_checked, self._CHBOX_long_term) self.Bind(wx.EVT_BUTTON, self._on_discontinued_as_planned_button_pressed, self._BTN_discontinued_as_planned)
def __init__(self, *args, **kwds): # begin wxGlade: wxgCurrentMedicationEAPnl.__init__ kwds["style"] = wx.NO_BORDER | wx.TAB_TRAVERSAL wx.ScrolledWindow.__init__(self, *args, **kwds) self._LBL_allergies = wx.StaticText(self, wx.ID_ANY, "") self._PRW_drug = cBrandOrSubstancePhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._TCTRL_drug_details = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_READONLY | wx.NO_BORDER) self._BTN_heart = wx.Button(self, wx.ID_ANY, _(u"\u2665"), style=wx.BU_EXACTFIT) self._BTN_kidneys = wx.Button(self, wx.ID_ANY, _("Kidneys"), style=wx.BU_EXACTFIT) self._BTN_database_brand = wx.Button(self, wx.ID_ANY, _("Brands"), style=wx.BU_EXACTFIT) self._BTN_database_substance = wx.Button(self, wx.ID_ANY, _("Substances"), style=wx.BU_EXACTFIT) self._LBL_preparation = wx.StaticText(self, wx.ID_ANY, _("Preparation")) self._PRW_preparation = cSubstancePreparationPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._CHBOX_start_unknown = wx.CheckBox(self, wx.ID_ANY, _("&Unknown or date:")) self._DP_started = cDateInputPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._PRW_start_certainty = cPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._CHBOX_approved = wx.CheckBox(self, wx.ID_ANY, _("Approved of")) self._PRW_episode = cEpisodeSelectionPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._PRW_schedule = cSubstanceSchedulePhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._PRW_duration = cIntervalPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._CHBOX_long_term = wx.CheckBox(self, wx.ID_ANY, _("Long-term")) self._PRW_aim = cSubstanceAimPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._PRW_notes = cPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._DP_discontinued = cDateInputPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self._BTN_discontinued_as_planned = wx.Button(self, wx.ID_ANY, _("Per plan"), style=wx.BU_EXACTFIT) self._LBL_reason = wx.StaticText(self, wx.ID_ANY, _("... Reason")) self._PRW_discontinue_reason = cPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER) self.__set_properties() self.__do_layout() self.Bind(wx.EVT_BUTTON, self._on_heart_button_pressed, self._BTN_heart) self.Bind(wx.EVT_BUTTON, self._on_kidneys_button_pressed, self._BTN_kidneys) self.Bind(wx.EVT_BUTTON, self._on_manage_brands_button_pressed, self._BTN_database_brand) self.Bind(wx.EVT_BUTTON, self._on_manage_substances_button_pressed, self._BTN_database_substance) self.Bind(wx.EVT_CHECKBOX, self._on_start_unknown_checked, self._CHBOX_start_unknown) self.Bind(wx.EVT_CHECKBOX, self._on_chbox_long_term_checked, self._CHBOX_long_term) self.Bind(wx.EVT_BUTTON, self._on_discontinued_as_planned_button_pressed, self._BTN_discontinued_as_planned)