Exemplo n.º 1
0
 def _on_delete(self, widget):
     (_, it) = self.act_view.get_selection().get_selected()
     if not it:
         util.show_message_dialog(_("Please select an activity"))
         return
     self.act_model.delete_activity_byiter(it)
     return True
Exemplo n.º 2
0
 def _on_delete(self, widget):
     (_, it) = self.act_view.get_selection().get_selected()
     if not it:
         util.show_message_dialog(_("Please select an activity"))
         return
     self.act_model.delete_activity_byiter(it)
     return True
Exemplo n.º 3
0
 def _on_start_timer(self, widget):
     (_, it) = self.act_view.get_selection().get_selected()
     if not it:
         util.show_message_dialog("Please select an activity")
         return
     activity = self.act_model.get_activity_byiter(it)
     self.parent_window.hide()
     timer_diag = TimerDialog(activity, finish_callback=self._on_timer_ends)
     timer_diag.show_all()
     return True
Exemplo n.º 4
0
 def _on_start_timer(self, widget):
     (_, it) = self.act_view.get_selection().get_selected()
     if not it:
         util.show_message_dialog("Please select an activity")
         return
     activity = self.act_model.get_activity_byiter(it)
     self.parent_window.hide()
     timer_diag = TimerDialog(activity, finish_callback=self._on_timer_ends)
     timer_diag.show_all()
     return True