Re: Make a small function thread safe

2011-12-18 Thread RangerElf
Which is why the original .acquire() ... .release() idiom was wrong, this would better express the intent: try: lock.acquire() shared_container.append(...) finally: lock.release() But like everyone mentions, the with statement takes care of all that in a more readable and compact fashion.

Re: Idiots guide to fonts with tKinter

2005-08-04 Thread RangerElf
Well, all text classes in Tkinter can take a " font=(...) " argument to specify the face with which to display, for example: from tkinter import * label = Label(root, font=("Helvetica", "bold", 13), ...) It's been a while since I've played with Tkinter, so I might be a little off on the exa