示例#1
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgWaitingListPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.ScrolledWindow.__init__(self, *args, **kwds)
		self._CHBOX_active_patient_only = wx.CheckBox(self, wx.ID_ANY, _("Active &patient"))
		self._PRW_zone = cWaitingZonePhraseWheel(self, wx.ID_ANY, "", style=wx.TE_PROCESS_ENTER)
		self._LBL_no_of_patients = wx.StaticText(self, wx.ID_ANY, "")
		self._LCTRL_patients = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_SIMPLE | wx.LC_REPORT)
		self._BTN_activate = wx.Button(self, wx.ID_ANY, _("&Activate"), style=wx.BU_EXACTFIT)
		self._BTN_activateplus = wx.Button(self, wx.ID_ANY, _(u"Activate\u00b2"), style=wx.BU_EXACTFIT)
		self._BTN_add_patient = wx.Button(self, wx.ID_ADD, "", style=wx.BU_EXACTFIT)
		self._BTN_remove = wx.Button(self, wx.ID_REMOVE, "", style=wx.BU_EXACTFIT)
		self._BTN_edit = wx.Button(self, wx.ID_ANY, _("&Edit"), style=wx.BU_EXACTFIT)
		self._BTN_up = wx.Button(self, wx.ID_UP, "", style=wx.BU_EXACTFIT)
		self._BTN_down = wx.Button(self, wx.ID_DOWN, "", style=wx.BU_EXACTFIT)

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_CHECKBOX, self._on_active_patient_only_checked, self._CHBOX_active_patient_only)
		self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self._on_list_item_activated, self._LCTRL_patients)
		self.Bind(wx.EVT_BUTTON, self._on_activate_button_pressed, self._BTN_activate)
		self.Bind(wx.EVT_BUTTON, self._on_activateplus_button_pressed, self._BTN_activateplus)
		self.Bind(wx.EVT_BUTTON, self._on_add_patient_button_pressed, self._BTN_add_patient)
		self.Bind(wx.EVT_BUTTON, self._on_remove_button_pressed, self._BTN_remove)
		self.Bind(wx.EVT_BUTTON, self._on_edit_button_pressed, self._BTN_edit)
		self.Bind(wx.EVT_BUTTON, self._on_up_button_pressed, self._BTN_up)
		self.Bind(wx.EVT_BUTTON, self._on_down_button_pressed, self._BTN_down)
示例#2
0
    def __init__(self, *args, **kwds):

        from Gnumed.wxpython import gmWaitingListWidgets, gmPatSearchWidgets, gmListWidgets

        # begin wxGlade: wxgWaitingListPnl.__init__
        kwds["style"] = wx.NO_BORDER | wx.TAB_TRAVERSAL
        wx.ScrolledWindow.__init__(self, *args, **kwds)
        self._CHBOX_active_patient_only = wx.CheckBox(self, -1, _("Active &patient"))
        self._PRW_zone = gmWaitingListWidgets.cWaitingZonePhraseWheel(self, -1, "", style=wx.TE_PROCESS_ENTER | wx.NO_BORDER)
        self._LBL_no_of_patients = wx.StaticText(self, -1, "")
        self._LCTRL_patients = gmListWidgets.cReportListCtrl(self, -1, style=wx.LC_REPORT | wx.SIMPLE_BORDER)
        self._BTN_activate = wx.Button(self, -1, _("&Activate"), style=wx.BU_EXACTFIT)
        self._BTN_activateplus = wx.Button(self, -1, _(u"Activate²"), style=wx.BU_EXACTFIT)
        self._BTN_add_patient = wx.Button(self, wx.ID_ADD, "", style=wx.BU_EXACTFIT)
        self._BTN_remove = wx.Button(self, wx.ID_REMOVE, "", style=wx.BU_EXACTFIT)
        self._BTN_edit = wx.Button(self, -1, _("&Edit"), style=wx.BU_EXACTFIT)
        self._BTN_up = wx.Button(self, wx.ID_UP, "", style=wx.BU_EXACTFIT)
        self._BTN_down = wx.Button(self, wx.ID_DOWN, "", style=wx.BU_EXACTFIT)

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_CHECKBOX, self._on_active_patient_only_checked, self._CHBOX_active_patient_only)
        self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self._on_list_item_activated, self._LCTRL_patients)
        self.Bind(wx.EVT_BUTTON, self._on_activate_button_pressed, self._BTN_activate)
        self.Bind(wx.EVT_BUTTON, self._on_activateplus_button_pressed, self._BTN_activateplus)
        self.Bind(wx.EVT_BUTTON, self._on_add_patient_button_pressed, self._BTN_add_patient)
        self.Bind(wx.EVT_BUTTON, self._on_remove_button_pressed, self._BTN_remove)
        self.Bind(wx.EVT_BUTTON, self._on_edit_button_pressed, self._BTN_edit)
        self.Bind(wx.EVT_BUTTON, self._on_up_button_pressed, self._BTN_up)
        self.Bind(wx.EVT_BUTTON, self._on_down_button_pressed, self._BTN_down)
    def __init__(self, *args, **kwds):

        from Gnumed.wxpython import gmPatSearchWidgets, gmWaitingListWidgets

        # begin wxGlade: wxgWaitingListEntryEditAreaPnl.__init__
        kwds["style"] = wx.NO_BORDER | wx.TAB_TRAVERSAL
        wx.Panel.__init__(self, *args, **kwds)
        self._PRW_patient = gmPatSearchWidgets.cPersonSearchCtrl(
            self, -1, "", style=wx.NO_BORDER)
        self._TCTRL_comment = wx.TextCtrl(self,
                                          -1,
                                          "",
                                          style=wx.TE_MULTILINE
                                          | wx.TE_WORDWRAP | wx.NO_BORDER)
        self._PRW_zone = gmWaitingListWidgets.cWaitingZonePhraseWheel(
            self, -1, "", style=wx.NO_BORDER)
        self._SPCTRL_urgency = wx.SpinCtrl(self,
                                           -1,
                                           "0",
                                           min=0,
                                           max=10,
                                           style=wx.NO_BORDER)

        self.__set_properties()
        self.__do_layout()
示例#4
0
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgWaitingListEntryEditAreaPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.Panel.__init__(self, *args, **kwds)
		self._PRW_patient = cPersonSearchCtrl(self, wx.ID_ANY, "")
		self._TCTRL_comment = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_WORDWRAP)
		self._PRW_zone = cWaitingZonePhraseWheel(self, wx.ID_ANY, "")
		self._SPCTRL_urgency = wx.SpinCtrl(self, wx.ID_ANY, "0", min=0, max=10, style=0)

		self.__set_properties()
		self.__do_layout()
    def __init__(self, *args, **kwds):

        from Gnumed.wxpython import gmPatSearchWidgets, gmWaitingListWidgets

        # begin wxGlade: wxgWaitingListEntryEditAreaPnl.__init__
        kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL
        wx.Panel.__init__(self, *args, **kwds)
        self._PRW_patient = gmPatSearchWidgets.cPersonSearchCtrl(self, -1, "", style=wx.NO_BORDER)
        self._TCTRL_comment = wx.TextCtrl(self, -1, "", style=wx.TE_MULTILINE|wx.TE_WORDWRAP|wx.NO_BORDER)
        self._PRW_zone = gmWaitingListWidgets.cWaitingZonePhraseWheel(self, -1, "", style=wx.NO_BORDER)
        self._SPCTRL_urgency = wx.SpinCtrl(self, -1, "0", min=0, max=10, style=wx.NO_BORDER)

        self.__set_properties()
        self.__do_layout()