Idiots guide to fonts with tKinter

James Stroud jstroud at mbi.ucla.edu
Fri Aug 5 07:51:14 CEST 2005


No doubt you have found Fredrik Lundh's intro:

http://www.pythonware.com/library/tkinter/introduction/

You can get a long way with that and experimenting.

Also, check out Tk:

http://www.astro.princeton.edu/~rhl/Tcl-Tk_docs/tk8.0a1/contents.html

If you can figure out how to translate the Tk documentation into Tkinter, you 
open a lot of doors for yourself.

The best easily available Tkinter tutorial I have found is in the Programming 
Python book by Mark Lutz (O'Reilly):

http://www.oreilly.com/catalog/python2/toc.html

Its $55 bucks, but is full of good examples, so it is worth it. The price of 
course is not the money, but the fact that some parts of the book (not 
necessarily the Tkinter part) can get pretty tedious to work through. But its 
worth the investment in time and money. I don't recommend learning Tkinter 
with just a reference manual (like Lundh's page).

You'll waste far more money's worth of time than just $55 trying to figure out 
how to do things that are already clearly described in Programming Python.

James

On Thursday 04 August 2005 02:02 am, import newbie wrote:
> Hi all,
>
> I'm a programming dabbler trying learn Python, and I've got a few
> questions.
>
> Mainly: Where can I find a good open-source library or tutorial
> (preferably free) that explains how to easily manipulate text in a
> tKinter window? Basically, I want to be able to do anything that HTML
> can do (or close to it) but without the HTML. :-)
>
> My "newbie dream project" is to piece together a functional, WYSIWYG
> text editor that can handle at least three fonts: Times New Roman,
> Arial and Courier (bold, italics and underlined).
>
> I know, I know. That's pretty ambitious. But that's my goal for Python.
> So....what's the easiest way to get there? What steps should I take?
> I'm not in any rush, I just want some help along the way...

-- 
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095

http://www.jamesstroud.com/



More information about the Python-list mailing list