~rick-rickspencer3/quidgets/natty-trunk

« back to all changes in this revision

Viewing changes to quickly/widgets/asynch_task_progressbox.py

  • Committer: Rick Spencer
  • Date: 2010-09-11 20:12:33 UTC
  • mfrom: (136.1.6 interational_quidgets)
  • Revision ID: rick.spencer@canonical.com-20100911201233-59j7483uydwwwbb8
added gettext functionality to prompts and widgets

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 import threading
21
21
 import time
22
22
 import gobject
 
23
 import gettext
 
24
 from gettext import gettext as _
 
25
 gettext.textdomain('quickly-widgets')
 
26
 
23
27
except:
24
28
 print "couldn't load depencies"
25
29
 
153
157
 """Class for use by AsynchTaskProgressBox. Not for general use.
154
158
 
155
159
 """
156
 
 def __init__(self,progressbar,displaytext = "Working"):
 
160
 def __init__(self,progressbar,displaytext = _("Working")):
157
161
  threading.Thread.__init__(self)
158
162
  self.displaytext = displaytext
159
163
  self.setDaemon(False)