How to display the prompt of wx in my Python IDLE window

This is a screenshot from a tutorial of Wxpython ,as you can see,there is a prompt when the man input (wx.),

but in my editing window,I have not found it.What should I do?If I could fix it, I’ll save a lot of time and make few mistakes.

Any suggestions?

Thank you very much in advance.

KId Guo

Hi,

...

Any suggestions?

You need to use an editor which has code completion, e.g. WingIDE, PyCharm, PyDev, Boa, Editra

or check out the listing at:

http://wiki.wxpython.org/wxPythonPit%20Apps#Programming:_Editors.2C_IDE.27s_and_other_tools

or use google

"python editor code completion"

I would suggest that you try a few of out for some time and then decide which one comes closest to what you expect.

Werner

···

On 9/8/2014 15:36, Kid Guo wrote:

A quick Google search finds this answer, does it work for your IDLE setup?

···

On Monday, September 8, 2014 6:36:31 AM UTC-7, Kid Guo wrote:

Any suggestions?Thank you very much in advance.

Well that really isn’t a suggestion for fixing the problem as-posted.

···

On Monday, September 8, 2014 6:49:33 AM UTC-7, werner wrote:

Hi,

On 9/8/2014 15:36, Kid Guo wrote:

Any suggestions?

You need to use an editor which has code completion, e.g. WingIDE,
PyCharm, PyDev, Boa, Editra

Hi,

You will find that developing wxPython programs in IDLE is a bit of a headache. Because IDLE is made using Tkinter, it has its own main loop. This causes some weird erratic crashes to happen when you try running you wxPython program. I’ve run some of my scripts quite happily in IDLE and then the next day, they won’t run at all. I would highly recommend using a different developing environment, such as Wing or Editra. If you must use IDLE, then be sure to run your scripts from the command line instead of within IDLE itself.

As to your question, were you able to actually import wx successfully? Try doing the import in the interpreter session either in IDLE or via the command line version of the interpreter.

  • Mike