[gnome-clocks] Fix string format for spinbuttons
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Fix string format for spinbuttons
- Date: Sun, 2 Sep 2012 16:19:17 +0000 (UTC)
commit 780cd15e220cfc23cf790a0debfe39994dcd25c7
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Sep 2 17:54:22 2012 +0200
Fix string format for spinbuttons
gnomeclocks/alarm.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnomeclocks/alarm.py b/gnomeclocks/alarm.py
index 64a5f77..5e1b76d 100644
--- a/gnomeclocks/alarm.py
+++ b/gnomeclocks/alarm.py
@@ -260,7 +260,7 @@ class AlarmDialog(Gtk.Dialog):
grid.attach(box, 1, 2, gridcols - 1, 1)
def _show_leading_zeros(self, spin_button):
- spin_button.set_text('{: 02d}'.format(spin_button.get_value_as_int()))
+ spin_button.set_text('{:02d}'.format(spin_button.get_value_as_int()))
return True
def get_alarm_item(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]