Archives
New tool added - T-Plan Robot
Submitted by Opensourcetesting.org - latest news on Tue, 08/12/2009 - 01:00.Python 3 - tkinter ttk (Tk Themed Widgets) - Blocking Command Example
Submitted by corey@goldb.org (Corey Goldberg) on Tue, 08/12/2009 - 15:59.Here is another example GUI application with ttk in Python 3.1.
This example shows usage of the Button, Text, and Scrollbar widgets, along with some basic layout management using grid().
To use it, enter a URL and click the button. It will send an HTTP GET request to the URL and insert the response headers into the Text widget. You will notice that the GUI is blocked (frozen) while the URL is fetched. This is because all of the work is done in the main event thread. I will show how to use threads for non-blocking events in a future post.
