List Info

Thread: Re: Re: Discussion:




Re: Re: Discussion:
user name
2006-02-28 10:30:15
On 2/28/06, Franz Steinhaeusler <gmx.at">franz.steinhaeuslergmx.at>; wrote:
[snip]
Open questions:
[...]
Should the editor part of the IDE restricted to support Python,
or would it be better to assist other languages.
(at least C++).?

Why should you put such a restriction? If you implement a command processor you could have a bunch of custom made commands like "EnterInPython&quot;, "TabInPython&quot;, "EnterInC", "TabInC", etc that could be mounted appropriately to the key presses upon loading a file or upon saving it with a certain extension.
You could bind the "F5&quot; key for example to either "ExecutePythonFile" or to "MakeProject&quot; or whatever.
If you decople things and just provide a lot of commands plus an easy way to map them to keys people will get interested. Maybe someone would like a little bit more motivation so, he/she would inherit "ExecutePythonFile" and before calling the super "do&quot; method would insert a small call to a wx.Sound.Play that would play a "Yeah baby!"; file.
This would be a trivial thing to implement using a command processor/commands decoupling and it could encourage beginners to think about contribution.

Build it and they will come if they can see a very easy way to tweak things.

--
Peter Damoc
Lead developer for
Inamed CAIS Planning System
http://www.cms.ro/tech.php?loc=cais&lang=en
Re: Re: Discussion
user name
2006-02-28 21:27:10
Peter Damoc wrote:
> If you implement a command processor
> you could have a bunch of custom made commands like
"EnterInPython",
> "TabInPython", "EnterInC",
"TabInC", etc that could be mounted
appropriately
> to the key presses upon loading a file or upon saving
it with a certain
> extension.

sort of, but you want the commands to be generic:

Enter
Tab
Comment
etc...

like this:

Franz Steinhaeusler wrote:
> What aout different modes as in emacs:
> 
> You have one Command: for example Block Comment or
Uncomment:
> C++:     //
> Python:  #

Exactly. and that's what makes Emacs so powerful: ctrl+C
means something 
like "make" in all modes -- in C it runs make,
in LaTeX is runs latex, 
in Python is runs the current buffer in the interpreter,
etc..

Most languages have a common set of commands like this, the
key binding 
would be bound the commands, and exactly what the commands
do would be 
mode-specific.

We'd only need a Python mode to start, but one or two
others would 
really help get a more universal infrastructure in place.
C/C++ is an 
obvious choice, and I know I'd like LaTeX.

-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer
                                     		
NOAA/OR&R/HAZMAT         (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barkernoaa.gov

------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-users-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-users-helplists.wxwidgets.org

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )