GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Table of Contents
  • wx.lib.eventStack.AppEventHandlerMixin
  • Show Source
  • index
  • modules
  • next
  • previous
  • Home
  • Gallery
  • wx.lib

This view

  • Original page
  • New address

GeezerVison is showing docs.wxpython.org — wx.lib.eventStack.AppEventHandlerMixin — wxPython 4.3.2 Docs

phoenix_title wx.lib.eventStack.AppEventHandlerMixin¶

The purpose of the AppEventHandlerMixin is to provide a centralized location to manage menu and toolbar events. In an IDE which may have any number of file editors and services open that may want to respond to certain menu and toolbar events (e.g. copy, paste, select all), we need this to efficiently make sure that the right handler is handling the event.

To work with this system, views must call:

AddHandlerForID(ID, handlerFunc)

or:

AddUIHandlerForID(ID, handlerFunc)

in their EVT_SET_FOCUS handler, and call Remove(UI)HandlerForID(ID) in their EVT_KILL_FOCUS handler.


class_hierarchy Class Hierarchy¶

Inheritance diagram for class AppEventHandlerMixin:

Inheritance diagram of AppEventHandlerMixin


method_summary Methods Summary¶

__init__

Initialize self. See help(type(self)) for accurate signature.

AddHandlerForID

AddHandlerForIDs

AddUIHandlerForID

HandleEvent

HandleUpdateUIEvent

RemoveHandlerForID

RemoveHandlerForIDs

RemoveUIHandlerForID


api Class API¶

class AppEventHandlerMixin¶

The purpose of the AppEventHandlerMixin is to provide a centralized location to manage menu and toolbar events. In an IDE which may have any number of file editors and services open that may want to respond to certain menu and toolbar events (e.g. copy, paste, select all), we need this to efficiently make sure that the right handler is handling the event.

To work with this system, views must call:

AddHandlerForID(ID, handlerFunc)

or:

AddUIHandlerForID(ID, handlerFunc)

in their EVT_SET_FOCUS handler, and call Remove(UI)HandlerForID(ID) in their EVT_KILL_FOCUS handler.


Methods¶

__init__(self)¶

Initialize self. See help(type(self)) for accurate signature.



AddHandlerForID(self, eventID, handlerFunc)¶


AddHandlerForIDs(self, eventID_list, handlerFunc)¶


AddUIHandlerForID(self, eventID, handlerFunc)¶


HandleEvent(self, event)¶


HandleUpdateUIEvent(self, event)¶


RemoveHandlerForID(self, eventID)¶


RemoveHandlerForIDs(self, eventID_list)¶


RemoveUIHandlerForID(self, eventID)¶
© Copyright 2012-2026, The wxPython Team. Created using Sphinx 9.1.0 and the python-docs-theme.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.