Пример #1
0
    def __init__(self, *args, **kwds):

        from Gnumed.wxpython.gmMedicationWidgets import cSubstancePreparationPhraseWheel

        # begin wxGlade: wxgSingleComponentGenericDrugEAPnl.__init__
        kwds["style"] = wx.BORDER_NONE | wx.TAB_TRAVERSAL
        wx.ScrolledWindow.__init__(self, *args, **kwds)
        self._LBL_drug_name = wx.StaticText(self, wx.ID_ANY, "")
        self._PRW_substance = cSubstancePhraseWheel(self,
                                                    wx.ID_ANY,
                                                    "",
                                                    style=wx.BORDER_NONE)
        self._TCTRL_amount = cTextCtrl(self,
                                       wx.ID_ANY,
                                       "",
                                       style=wx.BORDER_NONE)
        self._PRW_unit = cUnitPhraseWheel(self,
                                          wx.ID_ANY,
                                          "",
                                          style=wx.BORDER_NONE)
        self._PRW_dose_unit = cUnitPhraseWheel(self,
                                               wx.ID_ANY,
                                               "",
                                               style=wx.BORDER_NONE)
        self._PRW_preparation = cSubstancePreparationPhraseWheel(
            self, wx.ID_ANY, "", style=wx.BORDER_NONE)

        self.__set_properties()
        self.__do_layout()
Пример #2
0
    def __init__(self, *args, **kwds):

        from Gnumed.wxpython import gmMedicationWidgets
        from Gnumed.wxpython import gmSubstanceMgmtWidgets
        from Gnumed.wxpython import gmATCWidgets
        from Gnumed.wxpython import gmPhraseWheel

        # begin wxGlade: wxgDrugProductEAPnl.__init__
        kwds["style"] = wx.NO_BORDER | wx.TAB_TRAVERSAL
        wx.ScrolledWindow.__init__(self, *args, **kwds)
        self._PRW_product_name = gmSubstanceMgmtWidgets.cDrugProductPhraseWheel(
            self, wx.ID_ANY, "", style=wx.NO_BORDER)
        self._PRW_preparation = gmMedicationWidgets.cSubstancePreparationPhraseWheel(
            self, wx.ID_ANY, "", style=wx.NO_BORDER)
        self._CHBOX_is_fake = wx.CheckBox(self, wx.ID_ANY, _("Fake product"))
        self._TCTRL_components = wx.TextCtrl(self,
                                             wx.ID_ANY,
                                             "",
                                             style=wx.TE_MULTILINE
                                             | wx.TE_READONLY)
        self._BTN_manage_components = wx.Button(self,
                                                wx.ID_ANY,
                                                _("&Manage"),
                                                style=wx.BU_EXACTFIT)
        self._HL_atc_list = wx.HyperlinkCtrl(
            self,
            wx.ID_ANY,
            _("ATC Code"),
            _("http://www.whocc.no/atc_ddd_index/"),
            style=wx.HL_ALIGN_CENTRE | wx.HL_CONTEXTMENU | wx.HL_DEFAULT_STYLE)
        self._PRW_atc = gmATCWidgets.cATCPhraseWheel(self,
                                                     wx.ID_ANY,
                                                     "",
                                                     style=wx.NO_BORDER)
        self._TCTRL_external_code = wx.TextCtrl(self,
                                                wx.ID_ANY,
                                                "",
                                                style=wx.TE_READONLY
                                                | wx.NO_BORDER)
        self._PRW_external_code_type = gmPhraseWheel.cPhraseWheel(
            self, wx.ID_ANY, "", style=wx.TE_READONLY | wx.NO_BORDER)

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self._on_manage_components_button_pressed,
                  self._BTN_manage_components)
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgSingleComponentGenericDrugEAPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		self._LBL_drug_name = wx.StaticText(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmSubstanceMgmtWidgets import cSubstancePhraseWheel
		self._PRW_substance = cSubstancePhraseWheel(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmTextCtrl import cTextCtrl
		self._TCTRL_amount = cTextCtrl(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmMeasurementWidgets import cUnitPhraseWheel
		self._PRW_unit = cUnitPhraseWheel(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmMeasurementWidgets import cUnitPhraseWheel
		self._PRW_dose_unit = cUnitPhraseWheel(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmMedicationWidgets import cSubstancePreparationPhraseWheel
		self._PRW_preparation = cSubstancePreparationPhraseWheel(self, wx.ID_ANY, "")

		self.__set_properties()
		self.__do_layout()
Пример #4
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgDrugProductEAPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		from Gnumed.wxpython.gmSubstanceMgmtWidgets import cDrugProductPhraseWheel
		self._PRW_product_name = cDrugProductPhraseWheel(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmMedicationWidgets import cSubstancePreparationPhraseWheel
		self._PRW_preparation = cSubstancePreparationPhraseWheel(self, wx.ID_ANY, "")
		self._CHBOX_is_fake = wx.CheckBox(self, wx.ID_ANY, _("Fake product"))
		self._TCTRL_components = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_READONLY)
		self._BTN_manage_components = wx.Button(self, wx.ID_ANY, _("&Manage"), style=wx.BU_EXACTFIT)
		self._HL_atc_list = wx.adv.HyperlinkCtrl(self, wx.ID_ANY, _("ATC Code"), _("http://www.whocc.no/atc_ddd_index/"), style=wx.adv.HL_DEFAULT_STYLE)
		from Gnumed.wxpython.gmATCWidgets import cATCPhraseWheel
		self._PRW_atc = cATCPhraseWheel(self, wx.ID_ANY, "")
		self._TCTRL_external_code = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_READONLY)
		from Gnumed.wxpython.gmPhraseWheel import cPhraseWheel
		self._PRW_external_code_type = cPhraseWheel(self, wx.ID_ANY, "", style=wx.TE_READONLY)

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_BUTTON, self._on_manage_components_button_pressed, self._BTN_manage_components)
Пример #5
0
    def __init__(self, *args, **kwds):

        from Gnumed.wxpython import gmMedicationWidgets
        from Gnumed.wxpython import gmPhraseWheel

        # begin wxGlade: wxgBrandedDrugEAPnl.__init__
        kwds["style"] = wx.NO_BORDER | wx.TAB_TRAVERSAL
        wx.ScrolledWindow.__init__(self, *args, **kwds)
        self._PRW_brand = gmMedicationWidgets.cBrandedDrugPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
        self._PRW_preparation = gmMedicationWidgets.cSubstancePreparationPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
        self._CHBOX_is_fake = wx.CheckBox(self, wx.ID_ANY, _("Fake brand"))
        self._TCTRL_components = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_READONLY)
        self._BTN_manage_components = wx.Button(self, wx.ID_ANY, _("&Manage"), style=wx.BU_EXACTFIT)
        self._HL_atc_list = wx.HyperlinkCtrl(self, wx.ID_ANY, _("ATC Code"), _("http://www.whocc.no/atc_ddd_index/"), style=wx.HL_ALIGN_CENTRE | wx.HL_CONTEXTMENU | wx.HL_DEFAULT_STYLE)
        self._PRW_atc = gmMedicationWidgets.cATCPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
        self._TCTRL_external_code = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_READONLY | wx.NO_BORDER)
        self._PRW_external_code_type = gmPhraseWheel.cPhraseWheel(self, wx.ID_ANY, "", style=wx.TE_READONLY | wx.NO_BORDER)

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self._on_manage_components_button_pressed, self._BTN_manage_components)
Пример #6
0
	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)