def __init__(self, *args, **kwds): # begin wxGlade: wxgSubstanceEAPnl.__init__ kwds["style"] = wx.BORDER_NONE | wx.TAB_TRAVERSAL wx.ScrolledWindow.__init__(self, *args, **kwds) self._TCTRL_substance = cTextCtrl(self, wx.ID_ANY, "", style=wx.BORDER_NONE) self._HL_atc_list = wx.HyperlinkCtrl( self, wx.ID_ANY, _("ATC Code"), _("http://www.whocc.no/atc_ddd_index/"), style=wx.HL_DEFAULT_STYLE) self._PRW_atc = cATCPhraseWheel(self, wx.ID_ANY, "", style=wx.BORDER_NONE) self._TCTRL_instructions = cTextCtrl(self, wx.ID_ANY, "", style=wx.BORDER_NONE) self._HL_loinc_list = wx.HyperlinkCtrl(self, wx.ID_ANY, _("LOINCs"), _("https://search.loinc.org"), style=wx.HL_DEFAULT_STYLE) self._PRW_loinc = cLOINCPhraseWheel(self, wx.ID_ANY, "", style=wx.BORDER_NONE) self._BTN_add_loinc = wx.Button(self, wx.ID_ANY, _("Add"), style=wx.BU_EXACTFIT) self._LCTRL_loincs = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT) self._BTN_remove_loincs = wx.Button(self, wx.ID_ANY, _("Remove"), style=wx.BU_EXACTFIT) self.__set_properties() self.__do_layout() self.Bind(wx.EVT_BUTTON, self._on_add_loinc_button_pressed, self._BTN_add_loinc) self.Bind(wx.EVT_BUTTON, self._on_remove_loincs_button_pressed, self._BTN_remove_loincs)
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: wxgSubstanceEAPnl.__init__ kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL wx.ScrolledWindow.__init__(self, *args, **kwds) self._TCTRL_substance = cTextCtrl(self, wx.ID_ANY, "") 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) self._PRW_atc = cATCPhraseWheel(self, wx.ID_ANY, "") self._TCTRL_instructions = cTextCtrl(self, wx.ID_ANY, "") self._HL_loinc_list = wx.adv.HyperlinkCtrl(self, wx.ID_ANY, _("LOINCs"), _("https://search.loinc.org"), style=wx.adv.HL_DEFAULT_STYLE) self._PRW_loinc = cLOINCPhraseWheel(self, wx.ID_ANY, "") self._BTN_add_loinc = wx.Button(self, wx.ID_ANY, _("Add"), style=wx.BU_EXACTFIT) self._LCTRL_loincs = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT) self._BTN_remove_loincs = wx.Button(self, wx.ID_ANY, _("Remove"), style=wx.BU_EXACTFIT) self.__set_properties() self.__do_layout() self.Bind(wx.EVT_BUTTON, self._on_add_loinc_button_pressed, self._BTN_add_loinc) self.Bind(wx.EVT_BUTTON, self._on_remove_loincs_button_pressed, self._BTN_remove_loincs)
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)
def __init__(self, *args, **kwds): from Gnumed.wxpython import gmSubstanceMgmtWidgets from Gnumed.wxpython import gmATCWidgets from Gnumed.wxpython import gmPhraseWheel # begin wxGlade: wxgVaccineEAPnl.__init__ kwds["style"] = wx.NO_BORDER | wx.TAB_TRAVERSAL wx.ScrolledWindow.__init__(self, *args, **kwds) self._PRW_drug_product = gmSubstanceMgmtWidgets.cDrugProductPhraseWheel(self, -1, "", style=wx.NO_BORDER) self._CHBOX_fake = wx.CheckBox(self, -1, _("Fake")) self._PRW_route = gmPhraseWheel.cPhraseWheel(self, -1, "", style=wx.NO_BORDER) self._CHBOX_live = wx.CheckBox(self, -1, _("Live")) self._TCTRL_indications = wx.TextCtrl(self, -1, "", style=wx.TE_MULTILINE | wx.TE_READONLY | wx.NO_BORDER) self._BTN_manage_indications = wx.Button(self, -1, _("&Manage"), style=wx.BU_EXACTFIT) self._PRW_atc = gmATCWidgets.cATCPhraseWheel(self, -1, "", style=wx.NO_BORDER) self._PRW_age_min = gmPhraseWheel.cPhraseWheel(self, -1, "", style=wx.NO_BORDER) self._PRW_age_max = gmPhraseWheel.cPhraseWheel(self, -1, "", style=wx.NO_BORDER) self._TCTRL_comment = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER) self.__set_properties() self.__do_layout() self.Bind(wx.EVT_BUTTON, self._on_manage_indications_button_pressed, self._BTN_manage_indications)
def __init__(self, *args, **kwds): # begin wxGlade: wxgVaccineEAPnl.__init__ kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL wx.ScrolledWindow.__init__(self, *args, **kwds) self._PRW_drug_product = cDrugProductPhraseWheel(self, wx.ID_ANY, "") self._CHBOX_fake = wx.CheckBox(self, wx.ID_ANY, _("Fake")) self._PRW_route = cPhraseWheel(self, wx.ID_ANY, "") self._CHBOX_live = wx.CheckBox(self, wx.ID_ANY, _("Live"), style=wx.CHK_2STATE) self._TCTRL_indications = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_READONLY) self._PRW_atc = cATCPhraseWheel(self, wx.ID_ANY, "") self._PRW_age_min = cPhraseWheel(self, wx.ID_ANY, "") self._PRW_age_max = cPhraseWheel(self, wx.ID_ANY, "") self._TCTRL_comment = wx.TextCtrl(self, wx.ID_ANY, "") self.__set_properties() self.__do_layout()