Ubuntu QA:
BlogBrainstormPackage status
Log in
Ubuntu QA
IDLE
Idea sandbox Idea sandbox
Popular ideas Popular ideas
Ideas in development Ideas in development
Implemented ideas Implemented ideas

Popular ideas Here are the most popular ideas ever about IDLE.

Python Snippets from WWW in IDLE as menu  
Written by UbuKunubi the 12 May 09 at 06:44. New
I propose a RSS feed type fed menu for python snippets and samples.
A right-click context menu that allows for snippets to be added, and incorrect/wrong snippets to be voted for removal.

Hunting around the web for samples of python code is time consuming and slows program writing, often at a critical moment.

The internet is strewn with duplicates of samples for doing the same thing, and often for different versions of Python.
Having a snippets tool that is web-based would simplify the search, and a built-in tool like this would reduce the duplicates that are littered everywhere.

The implemented idea could be broken down:
Snippet type: gui,file handling, port handling, networking, graphics, html & xml, maths, string handling, time and date, loops, conditions, templates, , command line, examples, hello world samples, etc.
And API's for importing and installing type: Beautiful soup, bluetooth, skype, parallel, serial, etc.

This means that errors from attempting to use a snippet from a API that has not been installed can be eliminated.
6
votes
up equal down
Solution #1: Include 'insert snippet' in context menu in addition to set/clear breakpoint
Written by UbuKunubi the 12 May 09 at 06:44.
To solve this problem I would first search for and store code samples from the internet, making a note of what version of python they are from, and a note cataloging.

One solution to adding new snippets would be to use curl and twitter, or similar to post new snippets, with some form of encapsulating so large snippets can span many posts.

A search function for snippets would be useful as well so i would investigate how this could be built into IDLE.

See the 1 comments or propose a solution >>