Using a 'tool' to run wxPython fails unless "Capture Output" is de-selected.
If that check-box IS selected, then no output appears from print statements, and no windows appear either.
Is this a bug or what?
Using a 'tool' to run wxPython fails unless "Capture Output" is de-selected.
If that check-box IS selected, then no output appears from print statements, and no windows appear either.
Is this a bug or what?
I haven't tried this, as I haven't used wxPython. However, python itself works fine so I'm not sure what output you're expecting from wxPython?
If there's something easy that I can try I'll give it a go.
Here is the simplest wxPython code I could find, from the wxPython.org tutorial:
import wx
print "test"
app = wx.PySimpleApp()
frame = wx.Frame(None, -1, "Hello World")
frame.Show(1)
app.MainLoop()
This will output the word "test" to standard out, and open a hello world window. Neither of these things happen when you setup a tool to run the script with "Capture Output" checked. You have to uncheck that feature for this code to run.
Let me know if you find anything out.
Thanks!
I've had similar problems. Console Python programs work fine, but running wxpython creates a problem... The main window won't appear, however modal dialogs do.
I think the problem might be in the tools.cpp file, line 1131 has
si.dwFlags = STARTF_USESHOWWINDOW | STARTF_USESTDHANDLES;
I think it should change to
si.dwFlags = STARTF_USESTDHANDLES;
I can't compile the program, perhaps someone can test if this would be a fix.
I'll see if I can try this later on today, if it works ok and doesn't affect other tools it'll be in the next dev release.
You must log in to post.