473,395 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Integrating a code generator into IDLE

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
2 1369
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bob | last post by:
I am sure this has been answered in over whelming detail in this group, however the search results have not turned up any thing I am interested in. I want a simple form generator in PHP that...
1
by: Jeff Lowery | last post by:
Hi, Although I'm no Python expert, I have written generators in the past that have worked like a charm. Don't know why this one doesn't: **** class App: """ A simple Tk application that...
3
by: unexpected | last post by:
Hi all, I'm currently working on a large, legacy Fortran application. I would like to start new development in Python (as it is mainly I/O related). In order to do so, however, the whole project...
2
by: Sam Denton | last post by:
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...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.