diff options
author | Gary Martin <gary@garycmartin.com> | 2013-04-04 14:20:32 (GMT) |
---|---|---|
committer | Gary Martin <gary@garycmartin.com> | 2013-04-04 14:20:32 (GMT) |
commit | 8cc731f222c8680ef095efc2827d9cf6e5188bba (patch) | |
tree | ea1405651340e3bd9f229c867a0557ac686cd3b6 | |
parent | 9bf78d562a21096fb61bf85de64a15199312b958 (diff) |
Make sure AP/PM UI is not triggered when grabbing clock hands over the UI.
-rwxr-xr-x | clock.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1095,7 +1095,8 @@ font_desc="Sans Bold 40">%d</span></markup>') % (i + 1) break # Toggle AM or PM if clock face AM/PM area pressed - if mouse_x > self._center_x - self.am_pm_width / 2 and \ + if self._hand_being_grabbed is None and \ + mouse_x > self._center_x - self.am_pm_width / 2 and \ mouse_x < self._center_x + self.am_pm_width / 2 and \ mouse_y > self._center_y + self._radius / 3 - self.am_pm_height and \ mouse_y < self._center_y + self._radius / 3 + self.am_pm_height: |