Exemple #1
0
 def mouse_moved(self, x, y, alt_down=False):
     SelectPeriodByDragInputHandler.mouse_moved(self, x, y, alt_down)
     try:
         p = self.get_current_period()
     except ValueError:
         self.status_bar_adapter.set_text(_("Region too long"))
     else:
         if p.delta() < p.time_type.get_min_zoom_delta()[0]:
             self.status_bar_adapter.set_text(_("Region too short"))
         else:
             self.status_bar_adapter.set_text("")
Exemple #2
0
 def mouse_moved(self, x, y, alt_down=False):
     SelectPeriodByDragInputHandler.mouse_moved(self, x, y, alt_down)
     try:
         p = self.get_current_period()
     except ValueError:
         self.status_bar_adapter.set_text(_("Region too long"))
     else:
         if p.delta() < p.time_type.get_min_zoom_delta()[0]:
             self.status_bar_adapter.set_text(_("Region too short"))
         else:
             self.status_bar_adapter.set_text("")
Exemple #3
0
 def __init__(self, controller, view, initial_time):
     SelectPeriodByDragInputHandler.__init__(self, controller, initial_time)
     self.view = view
Exemple #4
0
 def __init__(self, controller, status_bar_adapter, start_time):
     SelectPeriodByDragInputHandler.__init__(self, controller, start_time)
     self.controller = controller
     self.status_bar_adapter = status_bar_adapter
     self.status_bar_adapter.set_text(_("Select region to zoom into"))
Exemple #5
0
 def __init__(self, controller, status_bar_adapter, start_time):
     SelectPeriodByDragInputHandler.__init__(self, controller, start_time)
     self.controller = controller
     self.status_bar_adapter = status_bar_adapter
     self.status_bar_adapter.set_text(_("Select region to zoom into"))