--- pyanaconda/ui/gui/spokes/datetime_spoke.py | 20 +++++++++++++++++--- 1 files changed, 17 insertions(+), 3 deletions(-) diff --git a/pyanaconda/ui/gui/spokes/datetime_spoke.py b/pyanaconda/ui/gui/spokes/datetime_spoke.py index acbaa9e..31634ad 100644 --- a/pyanaconda/ui/gui/spokes/datetime_spoke.py +++ b/pyanaconda/ui/gui/spokes/datetime_spoke.py @@ -99,6 +99,7 @@ class DatetimeSpoke(NormalSpoke): self._citiesSort = self.builder.get_object("citiesSort") self._citiesSort.set_sort_column_id(0, 0) #column 0, Ascending + self._mod_hours = 13 #TODO: change on timeformat RB change self._tzmap.set_timezone("Europe/Prague") @property @@ -155,16 +156,29 @@ class DatetimeSpoke(NormalSpoke): return city in self._regions_zones[region] def on_up_hours_clicked(self, *args): - pass + hours_label = self.builder.get_object("hoursLabel") + hours = int(hours_label.get_text()) + hours_str = "%0.2d" % ((hours + 1) % self._mod_hours) + hours_label.set_text(hours_str) def on_down_hours_clicked(self, *args): - pass + hours_label = self.builder.get_object("hoursLabel") + hours = int(hours_label.get_text()) + hours_str = "%0.2d" % ((hours - 1) % self._mod_hours) + hours_label.set_text(hours_str) def on_up_minutes_clicked(self, *args): + minutes_label = self.builder.get_object("minutesLabel") + minutes = int(minutes_label.get_text()) + minutes_str = "%0.2d" % ((minutes + 1) % 60) + minutes_label.set_text(minutes_str) pass def on_down_minutes_clicked(self, *args): - pass + minutes_label = self.builder.get_object("minutesLabel") + minutes = int(minutes_label.get_text()) + minutes_str = "%0.2d" % ((minutes - 1) % 60) + minutes_label.set_text(minutes_str) def on_up_ampm_clicked(self, *args): pass -- 1.7.4.4 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list