Example #1
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgAllergyManagerDlg.__init__
		kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX | wx.RESIZE_BORDER
		wx.Dialog.__init__(self, *args, **kwds)
		self.SetSize((650, 500))
		self._TXT_current_state = wx.StaticText(self, wx.ID_ANY, _("<current allergy state>"))
		self._TXT_last_confirmed = wx.StaticText(self, wx.ID_ANY, _("<last confirmed>"))
		self._RBTN_unknown = wx.RadioButton(self, wx.ID_ANY, _("Unknown"))
		self._RBTN_none = wx.RadioButton(self, wx.ID_ANY, _("No known allergies"))
		self._RBTN_some = wx.RadioButton(self, wx.ID_ANY, _("Has allergies"))
		self._TCTRL_state_comment = wx.TextCtrl(self, wx.ID_ANY, "")
		self._BTN_confirm = wx.Button(self, wx.ID_ANY, _("&Update / Confirm"))
		from Gnumed.wxpython.gmListWidgets import cReportListCtrl
		self._LCTRL_allergies = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT | wx.LC_SINGLE_SEL)
		self._LBL_message = wx.StaticText(self, wx.ID_ANY, _("Input new allergy, or select from among existing allergy items to edit them:"))
		from Gnumed.wxpython.gmAllergyWidgets import cAllergyEditAreaPnl
		self._PNL_edit_area = cAllergyEditAreaPnl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.TAB_TRAVERSAL)
		self._BTN_save_details = wx.Button(self, wx.ID_SAVE, "", style=wx.BU_EXACTFIT)
		self._BTN_clear = wx.Button(self, wx.ID_CLEAR, "", style=wx.BU_EXACTFIT)
		self._BTN_delete = wx.Button(self, wx.ID_DELETE, "", style=wx.BU_EXACTFIT)
		self.__hline_bottom = wx.StaticLine(self, wx.ID_ANY)
		self._BTN_dismiss = wx.Button(self, wx.ID_CLOSE, "")

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_BUTTON, self._on_confirm_button_pressed, self._BTN_confirm)
		self.Bind(wx.EVT_LIST_ITEM_SELECTED, self._on_list_item_selected, self._LCTRL_allergies)
		self.Bind(wx.EVT_BUTTON, self._on_save_details_button_pressed, self._BTN_save_details)
		self.Bind(wx.EVT_BUTTON, self._on_clear_button_pressed, self._BTN_clear)
		self.Bind(wx.EVT_BUTTON, self._on_delete_button_pressed, self._BTN_delete)
		self.Bind(wx.EVT_BUTTON, self._on_dismiss_button_pressed, self._BTN_dismiss)
Example #2
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgAllergyEditAreaDlg.__init__
		kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX | wx.RESIZE_BORDER
		wx.Dialog.__init__(self, *args, **kwds)
		self.SetSize((400, 190))
		from Gnumed.wxpython.gmAllergyWidgets import cAllergyEditAreaPnl
		self._PNL_edit_area = cAllergyEditAreaPnl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.TAB_TRAVERSAL)
		self._BTN_save = wx.Button(self, wx.ID_SAVE, "")
		self._BTN_clear = wx.Button(self, wx.ID_CLEAR, "")
		self._BTN_cancel = wx.Button(self, wx.ID_CANCEL, "")

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_BUTTON, self._on_save_button_pressed, self._BTN_save)
		self.Bind(wx.EVT_BUTTON, self._on_clear_button_pressed, self._BTN_clear)
Example #3
0
    def __init__(self, *args, **kwds):

        from Gnumed.wxpython import gmAllergyWidgets

        # begin wxGlade: wxgAllergyEditAreaDlg.__init__
        kwds["style"] = wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.MAXIMIZE_BOX|wx.MINIMIZE_BOX|wx.THICK_FRAME
        wx.Dialog.__init__(self, *args, **kwds)
        self._PNL_edit_area = gmAllergyWidgets.cAllergyEditAreaPnl(self, -1, style=wx.NO_BORDER|wx.TAB_TRAVERSAL)
        self._BTN_save = wx.Button(self, wx.ID_SAVE, "")
        self._BTN_clear = wx.Button(self, wx.ID_CLEAR, "")
        self._BTN_cancel = wx.Button(self, wx.ID_CANCEL, "")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self._on_save_button_pressed, self._BTN_save)
        self.Bind(wx.EVT_BUTTON, self._on_clear_button_pressed, self._BTN_clear)