wx.TextCtrl on wx.PopupWindow?

Hi
I'm trying to manage some controls on a wx.PopupWindow; all works fine, except TextControls: they are non editable.
More precisely, they seems to be editable (in the code no readonly attrib is set), context menu appears correctly when rclick, copy/paste are ok, but... textcontrol never gain focus, therefore editing is impossible.
What is wrong in my code? Docs dont help, I did not find PopupWindow class
There is attached a little code snippet that reproduces this strange behavior.
This using wxPython 2.5.2.8; same upgrading to 2.5.3.1.
Python 2.3.4 on W2K
Thanks for your help
Fabio

test9.py (1.44 KB)

jfabio wrote:

Hi
I'm trying to manage some controls on a wx.PopupWindow; all works fine, except TextControls: they are non editable.
More precisely, they seems to be editable (in the code no readonly attrib is set), context menu appears correctly when rclick, copy/paste are ok, but... textcontrol never gain focus, therefore editing is impossible.
What is wrong in my code? Docs dont help, I did not find PopupWindow class
There is attached a little code snippet that reproduces this strange behavior.
This using wxPython 2.5.2.8; same upgrading to 2.5.3.1.
Python 2.3.4 on W2K
Thanks for your help

I tried to solve this a while back but was unsuccessful. I don't think there is a bug report about it so please enter one. Perhaps then it will come to the attention of somebody that is able to fix it.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!