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

This view

  • Original page
  • New address

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

phoenix_title wx.IdManager¶

wx.IdManager is responsible for allocating and releasing window IDs.

It is used by wx.Window.NewControlId and wx.Window.UnreserveControlId , and can also be used be used directly.

See also

wx.Window.NewControlId , wx.Window.UnreserveControlId , Window IDs


class_hierarchy Class Hierarchy¶

Inheritance diagram for class IdManager:

Inheritance diagram of IdManager


method_summary Methods Summary¶

ReserveId

Called directly by wx.Window.NewControlId , this function will create a new ID or range of IDs.

UnreserveId

Called directly by wx.Window.UnreserveControlId , this function will unreserve an ID or range of IDs that is currently reserved.


api Class API¶

class wx.IdManager(object)¶

IdManager is responsible for allocating and releasing window IDs.


Methods¶

static ReserveId(count=1)¶

Called directly by wx.Window.NewControlId , this function will create a new ID or range of IDs.

The IDs will be reserved until assigned to a WindowIDRef() or unreserved with UnreserveControlId(). Only ID values that are not assigned to a WindowIDRef() need to be unreserved.

Parameters:

count (int) – The number of sequential IDs to reserve.

Return type:

int

Returns:

The value of the first ID in the sequence, or wx.ID_NONE.



static UnreserveId(id, count=1)¶

Called directly by wx.Window.UnreserveControlId , this function will unreserve an ID or range of IDs that is currently reserved.

This should only be called for IDs returned by ReserveId that have NOT been assigned to a WindowIDRef (see Window IDs).

Parameters:
  • id (wx.WindowID) – The first of the range of IDs to unreserve.

  • count (int) – The number of sequential IDs to unreserve.

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.