Popular recipes tagged "meta:loc=228"http://code.activestate.com/recipes/tags/meta:loc=228/2017-05-16T18:15:44-07:00ActiveState Code RecipesScrolling frame with mouse wheel support (Python) 2017-05-16T18:15:44-07:00Miguel Martínez Lópezhttp://code.activestate.com/recipes/users/4189907/http://code.activestate.com/recipes/580640-scrolling-frame-with-mouse-wheel-support/ <p style="color: grey"> Python recipe 580640 by <a href="/recipes/users/4189907/">Miguel Martínez López</a> (<a href="/recipes/tags/frame/">frame</a>, <a href="/recipes/tags/mousewheel/">mousewheel</a>, <a href="/recipes/tags/scrolling/">scrolling</a>, <a href="/recipes/tags/tkinter/">tkinter</a>). Revision 26. </p> <p>Scrolling frame in Tkinter with mouse wheel support for different platforms.</p> 'Which' for Windows (Python) 2013-08-16T09:14:07-07:00Robert Pyronhttp://code.activestate.com/recipes/users/4174781/http://code.activestate.com/recipes/578642-which-for-windows/ <p style="color: grey"> Python recipe 578642 by <a href="/recipes/users/4174781/">Robert Pyron</a> (<a href="/recipes/tags/commandline/">commandline</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/utility/">utility</a>, <a href="/recipes/tags/which/">which</a>, <a href="/recipes/tags/windows/">windows</a>). Revision 2. </p> <p>WHICH.PY scans through all directories specified in the system %PATH% environment variable, looking for the specified COMMAND(s). It tries to follow the sometimes bizarre rules for Windows command lookup.</p> Bound Inner Classes (Python) 2013-12-10T02:36:25-08:00Larry Hastingshttp://code.activestate.com/recipes/users/2467657/http://code.activestate.com/recipes/577070-bound-inner-classes/ <p style="color: grey"> Python recipe 577070 by <a href="/recipes/users/2467657/">Larry Hastings</a> (<a href="/recipes/tags/class_decorator/">class_decorator</a>, <a href="/recipes/tags/descriptor/">descriptor</a>). Revision 8. </p> <p>This recipe provides the class decorator <code>BoundInnerClass</code>. The decorator makes inner classes symmetric with method calls. Functions declared inside classes become "methods", and when you call them through an object they automatically get a reference to "self". The <code>BoundInnerClass</code> decorator makes this work for inner classes: an inner class decorated with <code>BoundInnerClass</code> gets a reference to that same (now "outer") object passed in automatically to the inner class's <code>__init__</code>.</p> <p>The recipe works unchanged in Python 2.6 and 3.1, and is licensed using the Zlib license.</p> Bible Verse Quiz - VerseMatch.py (Python) 2010-02-12T09:51:09-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/577043-bible-verse-quiz-versematchpy/ <p style="color: grey"> Python recipe 577043 by <a href="/recipes/users/2608421/">Stephen Chappell</a> (<a href="/recipes/tags/bible/">bible</a>, <a href="/recipes/tags/quiz/">quiz</a>, <a href="/recipes/tags/verse/">verse</a>, <a href="/recipes/tags/_versematch_/">_versematch_</a>). Revision 3. </p> <p>Run a Bible-verse-matching servlet on the network.</p> <p>This program is a port of the VerseMatch program written in CPS 110 at BJU during the Autumn Semester of 2003.</p> Templite+ (Python) 2009-02-28T04:44:46-08:00Thimo Kraemerhttp://code.activestate.com/recipes/users/4169283/http://code.activestate.com/recipes/576663-templite/ <p style="color: grey"> Python recipe 576663 by <a href="/recipes/users/4169283/">Thimo Kraemer</a> (<a href="/recipes/tags/template/">template</a>, <a href="/recipes/tags/templating/">templating</a>, <a href="/recipes/tags/text/">text</a>). Revision 13. </p> <p>Revised version of <a href="http://code.activestate.com/recipes/496702/">Templite</a>, a light-weight, fully functional, general purpose templating engine</p> Generic command-line option parser (Python) 2005-06-10T13:46:18-07:00Anandhttp://code.activestate.com/recipes/users/760763/http://code.activestate.com/recipes/425345-generic-command-line-option-parser/ <p style="color: grey"> Python recipe 425345 by <a href="/recipes/users/760763/">Anand</a> (<a href="/recipes/tags/programs/">programs</a>). Revision 5. </p> <p>When writing applications that take command-line arguments in Python, one has to make a choice between the two command-line parsing modules, getopt and optparse. Optparse though more powerful than getopt is available only since Python 2.3. Hence if you are writing a program targeted at Python 2.2 +, you are mostly constrained with using getopt and writing command line parsing code on top of it.</p> <p>This recipe provides a solution to this problem. It masks the actual module used for option parsing from the application. If optparse is available it is used, otherwise the parser class defaults to getopt. The application only requires to pass a dictionary of option keys and their settings, in a format inspired by optparse, but using tuples.</p> Rss aggregator with twisted (Python) 2004-04-12T23:26:13-07:00Valentino Volonghihttp://code.activestate.com/recipes/users/199559/http://code.activestate.com/recipes/277099-rss-aggregator-with-twisted/ <p style="color: grey"> Python recipe 277099 by <a href="/recipes/users/199559/">Valentino Volonghi</a> (<a href="/recipes/tags/web/">web</a>). Revision 2. </p> <p>This is a fully featured Rss aggregator with parsing included.</p> <p>It's scalable too very high numbers of feeds and can be used in multi-client environment through web using twisted with a little code on top of Nevow (<a href="http://www.nevow.com" rel="nofollow">www.nevow.com</a>), or can easily be integrated inside every app which uses some of the toolkits supported by Twisted.</p>