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

This view

  • Original page
  • New address

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

phoenix_title wx.MouseCaptureChangedEvent¶

A mouse capture changed event is sent to a window that loses its mouse capture.

This is called even if wx.Window.ReleaseMouse was called by the application code. Handling this event allows an application to cater for unexpected capture releases which might otherwise confuse mouse handling code.

events Events Emitted by this Class¶

Handlers bound for the following event types will receive a wx.MouseCaptureChangedEvent parameter.

  • EVT_MOUSE_CAPTURE_CHANGED: Process a wxEVT_MOUSE_CAPTURE_CHANGED event.

Availability

Only available for MSW.

See also

wx.MouseCaptureLostEvent, Events and Event Handling, wx.Window.CaptureMouse , wx.Window.ReleaseMouse , wx.Window.GetCapture


class_hierarchy Class Hierarchy¶

Inheritance diagram for class MouseCaptureChangedEvent:

Inheritance diagram of MouseCaptureChangedEvent


method_summary Methods Summary¶

__init__

Constructor.

GetCapturedWindow

Returns the window that gained the capture, or nullptr if it was a non-wxWidgets window.


property_summary Properties Summary¶

CapturedWindow

See GetCapturedWindow


api Class API¶

class wx.MouseCaptureChangedEvent(Event)¶

Possible constructors:

MouseCaptureChangedEvent(windowId=0, gainedCapture=None) -> None

A mouse capture changed event is sent to a window that loses its mouse capture.


Methods¶

__init__(self, windowId=0, gainedCapture=None)¶

Constructor.

Parameters:
  • windowId (wx.WindowID)

  • gainedCapture (wx.Window)

Return type:

None



GetCapturedWindow(self)¶

Returns the window that gained the capture, or nullptr if it was a non-wxWidgets window.

Return type:

wx.Window


Properties¶

CapturedWindow¶

See GetCapturedWindow

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