Integrating a code generator into IDLE

S

Sam Denton

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!
 
D

Diez B. Roggisch

Sam said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,219
Messages
2,571,117
Members
47,729
Latest member
taulaju99

Latest Threads

Top