Popular recipes tagged "text_enriched" but not "email"http://code.activestate.com/recipes/tags/text_enriched-email/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>