# HG changeset patch # User Adrian Buehlmann <adr...@cadifra.com> # Date 1253188974 -7200 # Node ID 431db4a1b49f469c7da6765a444a5cc447b842af # Parent b4f989f9f04fb4799a5940dabb37c8aa3a08d44f status: refactor get_status_types (step 3)
increase readability by introducing explicit loop variables diff --git a/tortoisehg/hgtk/status.py b/tortoisehg/hgtk/status.py --- a/tortoisehg/hgtk/status.py +++ b/tortoisehg/hgtk/status.py @@ -492,11 +492,11 @@ class GStatus(gdialog.GDialog): self._show_checks = {} row, col = 0, 0 - for ctuple in checks: - check = gtk.CheckButton(ctuple[1]) - check.connect('toggled', self.show_toggle, ctuple[0]) + for name, labeltext in checks: + check = gtk.CheckButton(labeltext) + check.connect('toggled', self.show_toggle, name) table.attach(check, col, col+1, row, row+1) - self._show_checks[ctuple[0]] = check + self._show_checks[name] = check col += row row = not row ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Tortoisehg-develop mailing list Tortoisehg-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop