Opened 12 years ago

Closed 12 years ago

#10186 closed enhancement (fixed)

Expose virtual Window::Enable to Python

Reported by: cprecord Owned by: robind
Priority: normal Milestone:
Component: wxPython Version: oldstable-latest
Keywords: Cc:
Blocked By: Blocking:
Patch: yes


Hello (Robin),

It would be useful to have the virtual for Enable exposed to python so that custom controls can override it. For cases like when calling Enable on the parent window the base class wxControl will have its Enable called but any method defined in a python subclass will not.

I saw a TODO about this in _window.i so maybe you have already considered this. I don't know anything about swig but attached is a hopefully correct patch to enable this for PyPanel, PyControl, PyWindow.



Attachments (1)

enable.patch download (3.9 KB) - added by cprecord 12 years ago.
patch against 2.8 branch

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by cprecord

patch against 2.8 branch

comment:1 Changed 12 years ago by RD

  • Resolution set to fixed
  • Status changed from new to closed

(In [57810]) Allow Enable to be overridden. Closes #10186

Note: See TracTickets for help on using tickets.