By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,097 Members | 1,580 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,097 IT Pros & Developers. It's quick & easy.

Integrating a code generator into IDLE

P: n/a
Code generators seem to be popular in Python.
(http://www.google.com/search?q=python+code-generator)

I have one that I'd like to integrate into IDLE. Ideally, I'd like to
(1) have a new file type show up when I use the File/Open dialog, and
(2) have a function key that lets me run my generator against the file,
just like F5 lets me run my Python code; ideally, I'd like to re-purpose
the F5 key to be file-type aware. I've got a simple extension written
that uses the F6 key to "compile" my files, but two goals I've listed
seem a bit beyond me. Does anyone have any advice/pointers? Or is one
or both ideas impractical? Thanks!
Jun 1 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Sun, 01 Jun 2008 10:40:09 -0500, Sam Denton wrote:
Code generators seem to be popular in Python.
I don't think so.

Ciao,
Marc 'BlackJack' Rintsch
Jun 1 '08 #2

P: n/a
Sam Denton schrieb:
Code generators seem to be popular in Python.
(http://www.google.com/search?q=python+code-generator)
Certainly not. The most of them will be used for generating bindings.
Apart from that, you rareley (if ever) need to generate code.
I have one that I'd like to integrate into IDLE. Ideally, I'd like to
(1) have a new file type show up when I use the File/Open dialog, and
(2) have a function key that lets me run my generator against the file,
just like F5 lets me run my Python code; ideally, I'd like to re-purpose
the F5 key to be file-type aware. I've got a simple extension written
that uses the F6 key to "compile" my files, but two goals I've listed
seem a bit beyond me. Does anyone have any advice/pointers? Or is one
or both ideas impractical? Thanks!
You might consider using eric, a python-ide written in python with the
Qt-Framework. It allows plugins.

Diez
Jun 1 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.