~tony-badwolf/quickly/threaded_application

« back to all changes in this revision

Viewing changes to data/templates/threaded-ubuntu-application/project_root/data/ui/python_name_window.xml

  • Committer: tony
  • Date: 2010-09-16 19:55:40 UTC
  • Revision ID: tony@tony-laptop-20100916195540-i9lgho9h5m9bjl8b
Threads are useful in gui applications. Without them slow processes freeze the GUI. This uses the node concept from erlang (quickly uses couchdb, couchdb uses erlang, I wondered why). It is implemented using python's Queue module. There is a bug catcher for exceptions in other threads. Contains example code to drive a progress bar, disable buttons when busy and show exception in threaded model. Demo code is clearly marked and can be removed to make a clean project. All threading code is "hidden" in helpers.py. Implemented as new template based on ubuntu_application.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<glade-catalog name="python_name_window" domain="glade-3" 
 
2
               depends="gtk+" version="1.0">
 
3
  <glade-widget-classes>
 
4
    <glade-widget-class title="sentence_name Window" name="camel_case_nameWindow" 
 
5
                        generic-name="camel_case_nameWindow" parent="GtkWindow"
 
6
                        icon-name="widget-gtk-window"/>
 
7
  </glade-widget-classes>
 
8
</glade-catalog>