wx.py.shell auto indentation?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

wx.py.shell auto indentation?

bradcan
The shell auto indents on enter key press. This is probably correct for code entered at the prompt.

But, on calling runfile('something.py)  the text is again automatically indented. The code is thus mangled by every line, regardless of the initial correct indentation, being indented twice. The net result is that the N th. line of code gets N indents. Consider what 50 lines looks like. :-o

This makes for difficult, if not impossible. copy and paste. Certainly the code is then very difficult to read. Most annoyingly bank lines in the file cause indentation errors which can be excruciatingly difficult to  find. (see the attached screen shot)

Is there a method to kill the auto indentation? Either temporarily or permanently?

If not can someone give please me a clue where look to hack the code.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

mangled.png (100K) Download Attachment