This is strange, and I cannot get a sample app to recreate the problem.
I have a frame that brings up a modal dialog, which has a button that
calls the wx.GetTextFromUser function. The thing works. I can click on
the button, type something and press enter and it works, but the
dialog does not show up in my real program.
It does show up in the sample I've attached.
Windows XP, but wxPython 2.8.4.2.
Any idea why the GetText dialog wouldn't be showing up?
DialogDebug.py (2.7 KB)
···
--
Josh English
Joshua.R.English@gmail.com
http://joshenglish.livejournal.com
I think I fixed it. I upgraded to the latest wxPython and my XRC files
stopped working for some reason, so I had to recreate my entire panel
without XRCed. I suspect the problem was adding the wx.STAY_ON_TOP
style to the dialog, which I had checked in XRCed.
Josh
···
On Sun, Jun 15, 2008 at 6:17 AM, Mike Driscoll <mike@pythonlibrary.org> wrote:
Hi Josh,
This is strange, and I cannot get a sample app to recreate the problem.
I have a frame that brings up a modal dialog, which has a button that
calls the wx.GetTextFromUser function. The thing works. I can click on
the button, type something and press enter and it works, but the
dialog does not show up in my real program.
It does show up in the sample I've attached.
Windows XP, but wxPython 2.8.4.2.
Any idea why the GetText dialog wouldn't be showing up?
Are you sure you're calling ShowModal in your main applications? Put some
print statements in right before you instantiate your dialog and then in
your wx.Dialog class to try to find where it's breaking down.
-------------------
Mike Driscoll
Blog: http:\\blog.pythonlibrary.org
Python Extension Building Network: http:\\www.pythonlibrary.org
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
--
Josh English
Joshua.R.English@gmail.com