[issue232] [PATCH] gtk/process.py cleanup
David Farning at Labix Tracker
tracker at labix.org
Mon Oct 23 20:26:52 PDT 2006
New submission from David Farning <dfarning at gmail.com>:
Here is a very simple patch that cleans up some of the overuse of the variable
name 'process'.
Dave
Index: smart/interfaces/gtk/progress.py
===================================================================
--- smart/interfaces/gtk/progress.py (revision 755)
+++ smart/interfaces/gtk/progress.py (working copy)
@@ -63,10 +63,10 @@
self._topic.show()
vbox.pack_start(self._topic, expand=False, fill=False)
- self._progress = gtk.ProgressBar()
- self._progress.set_size_request(-1, 25)
- self._progress.show()
- vbox.pack_start(self._progress, expand=False, fill=False)
+ self.progressbar = gtk.ProgressBar()
+ self.progressbar.set_size_request(-1, 25)
+ self.progressbar.show()
+ vbox.pack_start(self.progressbar, expand=False, fill=False)
if hassub:
self._scrollwin = gtk.ScrolledWindow()
@@ -232,8 +232,8 @@
self._treemodel.set(iter, 0, subpercent, 1, subtopic)
else:
self._topic.set_text(topic)
- self._progress.set_fraction(percent/100.)
- self._progress.set_text("%d%%" % percent)
+ self.progressbar.set_fraction(percent/100.)
+ self.progressbar.set_text("%d%%" % percent)
if self._hassub:
self._treeview.queue_draw()
----------
files: progress.py.diff
messages: 799
nosy: dfarning
priority: wish
project: smart
status: unread
title: [PATCH] gtk/process.py cleanup
_______________________________________
Labix issue tracker <tracker at labix.org>
<http://tracker.labix.org/issue232>
_______________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: progress.py.diff
Type: text/x-patch
Size: 1234 bytes
Desc: not available
URL: <http://lists.labix.org/pipermail/smart-labix.org/attachments/20061024/6b261105/attachment-0002.bin>
More information about the Smart
mailing list