My wxPython app doesn’t work when launched from IPython. Many people have IPython set to be their default python, so when they try to run my app it shows the widgets weirdly collapsed into each other.
What version of ipython / wxPython? What platform? I just tried
ipython 0.9.1 with a simple wxPython app (2.8.10.1) and it worked fine
on Windows XP.
Do you have a sample app we could try?
···
On Jul 29, 4:18 pm, cool-RR <cool...@cool-rr.com> wrote:
Hello,
My wxPython app doesn't work when launched from IPython. Many people have
IPython set to be their default `python`, so when they try to run my app it
shows the widgets weirdly collapsed into each other.
Are you running the wx app from the IPython interactive interpreter prompt, or are you running from the system command line using ipython? If the former then the problem is probably that the main loop isn't running or is being blocked and so the size events that would trigger a layout are not being sent. I seem to recall that there was some work a year or two ago dealing with making it possible to use an interactive IPython and wx together but I don't remember details. I think it used a custom MainLoop or something like that. A google search or asking IPython folks about it might help you find out how to do it.
···
On 7/29/10 2:18 PM, cool-RR wrote:
Hello,
My wxPython app doesn't work when launched from IPython. Many people
have IPython set to be their default `python`, so when they try to run
my app it shows the widgets weirdly collapsed into each other.
Mm, now I find myself unable to reproduce the problem. If it’ll happen again, I’ll investigate again.
Thanks,
Ram.
···
On Fri, Jul 30, 2010 at 8:56 PM, Robin Dunn robin@alldunn.com wrote:
On 7/29/10 2:18 PM, cool-RR wrote:
Hello,
My wxPython app doesn’t work when launched from IPython. Many people
have IPython set to be their default python, so when they try to run
my app it shows the widgets weirdly collapsed into each other.
Is this a known problem? Is it solvable?
Are you running the wx app from the IPython interactive interpreter prompt, or are you running from the system command line using ipython? If the former then the problem is probably that the main loop isn’t running or is being blocked and so the size events that would trigger a layout are not being sent. I seem to recall that there was some work a year or two ago dealing with making it possible to use an interactive IPython and wx together but I don’t remember details. I think it used a custom MainLoop or something like that. A google search or asking IPython folks about it might help you find out how to do it.