Popular recipes tagged "text_enriched"http://code.activestate.com/recipes/tags/text_enriched/2014-06-20T16:25:43-07:00ActiveState Code RecipesSuperText - Scrollable text with pop-up menu and themes for Tkinter (Python) 2014-06-20T16:25:43-07:00Peter Mojeikohttp://code.activestate.com/recipes/users/4190241/http://code.activestate.com/recipes/578897-supertext-scrollable-text-with-pop-up-menu-and-the/ <p style="color: grey"> Python recipe 578897 by <a href="/recipes/users/4190241/">Peter Mojeiko</a> (<a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/text_enriched/">text_enriched</a>, <a href="/recipes/tags/tkinter/">tkinter</a>). </p> <p>Two things I consistently need when using a Text widget are scrollbars and pop-up menus. I've been adding them in on the fly for a while, but I think this class provides an easier way to implement these features.</p> <p>I also added a couple of very minimal themes:</p> <pre class="prettyprint"><code>1. The terminal theme replaces the standard Text cursor with a blocky-style insert cursor 2. The typewriter theme takes any text that has been inserted before it is called and types it to the widget, one character at a time </code></pre> <p>There's an example of use at the bottom of the code.</p> Convert text/enriched MIME to text/html (Python) 2009-06-09T15:08:40-07:00Jack Trainorhttp://code.activestate.com/recipes/users/4076953/http://code.activestate.com/recipes/576800-convert-textenriched-mime-to-texthtml/ <p style="color: grey"> Python recipe 576800 by <a href="/recipes/users/4076953/">Jack Trainor</a> (<a href="/recipes/tags/email/">email</a>, <a href="/recipes/tags/html/">html</a>, <a href="/recipes/tags/mime/">mime</a>, <a href="/recipes/tags/text_enriched/">text_enriched</a>). </p> <p>Converts text stream in text/enriched MIME format from file or stdin to text/html output to file or stdout.</p>