コード例 #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):
        # begin wxGlade: wxgDrugComponentEAPnl.__init__
        kwds["style"] = kwds.get("style",
                                 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
        wx.ScrolledWindow.__init__(self, *args, **kwds)
        self._TCTRL_product_name = wx.TextCtrl(self,
                                               wx.ID_ANY,
                                               "",
                                               style=wx.TE_READONLY)
        self._TCTRL_components = wx.TextCtrl(self,
                                             wx.ID_ANY,
                                             "",
                                             style=wx.TE_MULTILINE
                                             | wx.TE_READONLY)
        self._TCTRL_codes = wx.TextCtrl(self,
                                        wx.ID_ANY,
                                        "",
                                        style=wx.TE_READONLY)
        from Gnumed.wxpython.gmSubstanceMgmtWidgets import cSubstancePhraseWheel
        self._PRW_substance = cSubstancePhraseWheel(self, wx.ID_ANY, "")
        self._TCTRL_amount = wx.TextCtrl(self, wx.ID_ANY, "")
        from Gnumed.wxpython.gmMeasurementWidgets import cUnitPhraseWheel
        self._PRW_unit = cUnitPhraseWheel(self, wx.ID_ANY, "")

        self.__set_properties()
        self.__do_layout()
コード例 #3
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgSubstanceAbuseEAPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		self._RBTN_tobacco = wx.RadioButton(self, wx.ID_ANY, _("&Nicotine"))
		self._RBTN_c2 = wx.RadioButton(self, wx.ID_ANY, _("&Alcohol"))
		self._RBTN_other_substance = wx.RadioButton(self, wx.ID_ANY, _("&Other:"))
		from Gnumed.wxpython.gmSubstanceMgmtWidgets import cSubstancePhraseWheel
		self._PRW_substance = cSubstancePhraseWheel(self, wx.ID_ANY, "")
		self._RBTN_nonharmful_use = wx.RadioButton(self, wx.ID_ANY, _("&Non-harmful use"), style=wx.RB_GROUP)
		self._RBTN_harmful_use = wx.RadioButton(self, wx.ID_ANY, _("&Harmful use"))
		self._RBTN_presently_addicted = wx.RadioButton(self, wx.ID_ANY, _("Presently &addicted"))
		self._RBTN_previously_addicted = wx.RadioButton(self, wx.ID_ANY, _("Previously &addicted"))
		from Gnumed.wxpython.gmTextCtrl import cTextCtrl
		self._TCTRL_comment = cTextCtrl(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmDateTimeInput import cDateInputPhraseWheel
		self._DPRW_quit_when = cDateInputPhraseWheel(self, wx.ID_ANY, "")
		self._LBL_confirm_date = wx.StaticText(self, wx.ID_ANY, _("?"))
		self._CHBOX_confirm = wx.CheckBox(self, wx.ID_ANY, _("&Reconfirm as of today"))

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_RADIOBUTTON, self._on_substance_rbutton_selected, self._RBTN_tobacco)
		self.Bind(wx.EVT_RADIOBUTTON, self._on_substance_rbutton_selected, self._RBTN_c2)
		self.Bind(wx.EVT_RADIOBUTTON, self._on_substance_rbutton_selected, self._RBTN_other_substance)
コード例 #4
0
ファイル: wxgSubstanceDoseEAPnl.py プロジェクト: ncqgm/gnumed
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgSubstanceDoseEAPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		self._PRW_substance = cSubstancePhraseWheel(self, wx.ID_ANY, "")
		self._TCTRL_amount = cTextCtrl(self, wx.ID_ANY, "")
		self._PRW_unit = cUnitPhraseWheel(self, wx.ID_ANY, "")
		self._PRW_dose_unit = cUnitPhraseWheel(self, wx.ID_ANY, "")
		self._LBL_info = wx.StaticText(self, wx.ID_ANY, "")

		self.__set_properties()
		self.__do_layout()
コード例 #5
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxgSubstanceDoseEAPnl.__init__
        kwds["style"] = kwds.get("style",
                                 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
        wx.ScrolledWindow.__init__(self, *args, **kwds)
        self._PRW_substance = cSubstancePhraseWheel(self, wx.ID_ANY, "")
        self._TCTRL_amount = cTextCtrl(self, wx.ID_ANY, "")
        self._PRW_unit = cUnitPhraseWheel(self, wx.ID_ANY, "")
        self._PRW_dose_unit = cUnitPhraseWheel(self, wx.ID_ANY, "")
        self._LBL_info = wx.StaticText(self, wx.ID_ANY, "")

        self.__set_properties()
        self.__do_layout()
コード例 #6
0
ファイル: wxgDrugComponentEAPnl.py プロジェクト: ncqgm/gnumed
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgDrugComponentEAPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		self._TCTRL_product_name = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_READONLY)
		self._TCTRL_components = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_READONLY)
		self._TCTRL_codes = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_READONLY)
		from Gnumed.wxpython.gmSubstanceMgmtWidgets import cSubstancePhraseWheel
		self._PRW_substance = cSubstancePhraseWheel(self, wx.ID_ANY, "")
		self._TCTRL_amount = wx.TextCtrl(self, wx.ID_ANY, "")
		from Gnumed.wxpython.gmMeasurementWidgets import cUnitPhraseWheel
		self._PRW_unit = cUnitPhraseWheel(self, wx.ID_ANY, "")

		self.__set_properties()
		self.__do_layout()
コード例 #7
0
	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()