Can anyone please lead me in the right direction to understanding the steps of how to code Indenting into the StyledTextCtrl like the Python IDLE?
I Understand i may have to check if a colon is there and then catch the enter key with an event. Also staying inside the indent and hopping out of the indent.
Even if it is a few functions, then i may be able to figure the rest out 
Thankyou very much.
Hi Victor,
Can anyone please lead me in the right direction to understanding the steps
of how to code Indenting into the StyledTextCtrl like the Python IDLE?
I Understand i may have to check if a colon is there and then catch the
enter key with an event. Also staying inside the indent and hopping out of
the indent.
Even if it is a few functions, then i may be able to figure the rest out 
Take a look at the "Editra" package that is part of wxPython. It may
help you get started.
..\Lib\site-packages\(version)\wx\tools\Editra\src\ed_stc.py and related files.
Hope this helps.
Cheers,
Scott.
路路路
On Thu, Mar 14, 2013 at 12:36 AM, Victor Gatto <vjgaero@gmail.com> wrote:
Thankyou very much.
Or you can borrow all the code...."stand on teh shoulders of giants"
and all that.
Note that python indentation is kind of tricky, and also really
important. Many editors do not do it well.
Personally, I love the implementation in Peppy, which I"m pretty sure
is borrowed from Editra (yay, Cody!)
-Chris
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker@noaa.gov
路路路
On Thu, Mar 14, 2013 at 6:53 AM, grunculus <grunculus@gmail.com> wrote:
Take a look at the "Editra" package that is part of wxPython. It may
help you get started.