From bbb8dff42d4e22809c7a2eeb15dff1e016b4a602 Mon Sep 17 00:00:00 2001 From: Huang Peng Date: Tue, 1 Jul 2008 23:28:55 +0800 Subject: [PATCH] Fix problem when page size == 10. --- panel/candidatepanel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panel/candidatepanel.py b/panel/candidatepanel.py index a11eab0..b96e36b 100644 --- a/panel/candidatepanel.py +++ b/panel/candidatepanel.py @@ -51,8 +51,8 @@ class CandidateArea (gtk.HBox): self.pack_start (VSeparator(), False, False, 0) self.pack_start (self._vbox2, True, True, 4) - for i in xrange (1, 10): - label1 = gtk.Label ("%d." % i) + for i in xrange (1, 11): + label1 = gtk.Label ("%d." % (i % 10)) label1.set_alignment (0.0, 0.5) label1.set_no_show_all (True) -- 2.11.4.GIT