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.NotifyEvent
  • Show Source
  • index
  • modules
  • next
  • previous
  • Home
  • Gallery
  • wx

This view

  • Original page
  • New address

GeezerVison is showing docs.wxpython.org — wx.NotifyEvent — wxPython 4.3.2 Docs

phoenix_title wx.NotifyEvent¶

This class is not used by the event handlers by itself, but is a base class for other event classes (such as wx.BookCtrlEvent).

It (or an object of a derived class) is sent when the controls state is being changed and allows the program to wx.NotifyEvent.Veto this change if it wants to prevent it from happening.

See also

wx.BookCtrlEvent


class_hierarchy Class Hierarchy¶

Inheritance diagram for class NotifyEvent:

Inheritance diagram of NotifyEvent


sub_classes Known Subclasses¶

wx.aui.AuiToolBarEvent, wx.BookCtrlEvent, wx.dataview.DataViewEvent, wx.grid.GridEvent, wx.grid.GridRangeSelectEvent, wx.grid.GridSizeEvent, wx.HeaderCtrlEvent, wx.ListEvent, wx.media.MediaEvent, wx.ribbon.RibbonBarEvent, wx.richtext.RichTextEvent, wx.SpinDoubleEvent, wx.SpinEvent, wx.SplitterEvent, wx.TreeEvent, wx.dataview.TreeListEvent, wx.html2.WebViewEvent, wx.adv.WizardEvent


method_summary Methods Summary¶

__init__

Constructor (used internally by wxWidgets only).

Allow

This is the opposite of Veto : it explicitly allows the event to be processed.

IsAllowed

Returns True if the change is allowed ( Veto hasn’t been called) or False otherwise (if it was).

Veto

Prevents the change announced by this event from happening.


api Class API¶

class wx.NotifyEvent(CommandEvent)¶

Possible constructors:

NotifyEvent(eventType=wxEVT_NULL, id=0) -> None

This class is not used by the event handlers by itself, but is a base class for other event classes (such as BookCtrlEvent).


Methods¶

__init__(self, eventType=wxEVT_NULL, id=0)¶

Constructor (used internally by wxWidgets only).

Parameters:
  • eventType (wx.EventType)

  • id (int)

Return type:

None



Allow(self)¶

This is the opposite of Veto : it explicitly allows the event to be processed.

For most events it is not necessary to call this method as the events are allowed anyhow but some are forbidden by default (this will be mentioned in the corresponding event description).

Return type:

None



IsAllowed(self)¶

Returns True if the change is allowed ( Veto hasn’t been called) or False otherwise (if it was).

Return type:

bool



Veto(self)¶

Prevents the change announced by this event from happening.

It is in general a good idea to notify the user about the reasons for vetoing the change because otherwise the applications behaviour (which just refuses to do what the user wants) might be quite surprising.

Return type:

None

© 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.