Changeset 927:566a7479b869
- Timestamp:
- 04/27/19 12:17:34 (6 years ago)
- Branch:
- python3
- Phase:
- public
- Location:
- src/mlx/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/flightlist.py
r919 r927 171 171 def hasFlights(self): 172 172 """Determine if there are any flights in the list.""" 173 return self._model.get_iter_ root() is not None173 return self._model.get_iter_first() is not None 174 174 175 175 def clear(self): … … 271 271 def __init__(self, which, wizard, window, pirepEditable = False): 272 272 """Construct the frame with the given title.""" 273 super(PendingFlightsFrame, self).__init__(xstr("pendflt_title_" + which)) 273 super(PendingFlightsFrame, self).__init__() 274 self.set_label(xstr("pendflt_title_" + which)) 274 275 275 276 self._which = which -
src/mlx/gui/timetable.py
r923 r927 82 82 self._view = gtk.TreeView(self._model) 83 83 84 self._tooltips = gtk.Tooltips()85 self._tooltips.disable()86 84 self._view.connect("motion-notify-event", self._updateTooltip) 87 85 … … 225 223 result = widget.get_path_at_pos( int(event.x), int(event.y)) 226 224 if result is None: 227 self._tooltips.set_tip(widget, "") 228 self._tooltips.disable() 225 widget.set_tooltip_text("") 229 226 else: 230 227 (path, col, x, y) = result … … 244 241 text += date.strftime("%Y-%m-%d") 245 242 246 self._tooltips.set_tip(widget, text) 247 self._tooltips.enable() 243 widget.set_tooltip_text(text) 248 244 else: 249 self._tooltips.set_tip(widget, "") 250 self._tooltips.disable() 245 widget.set_tooltip_text("") 251 246 except Exception as e: 252 247 print(e) 253 self._tooltips.set_tip(widget, "") 254 self._tooltips.disable() 248 widget.set_tooltip_text("") 249 250 #----------------------------------------------------------------------------- 251 252 gobject.signal_new("row-activated", Timetable, gobject.SIGNAL_RUN_FIRST, 253 None, (int,)) 254 255 gobject.signal_new("selection-changed", Timetable, gobject.SIGNAL_RUN_FIRST, 256 None, (object,)) 255 257 256 258 #----------------------------------------------------------------------------- … … 520 522 xscale = 1.0, yscale = 1.0) 521 523 522 filterFrame = gtk.Frame(xstr("timetable_filter")) 524 filterFrame = gtk.Frame() 525 filterFrame.set_label(xstr("timetable_filter")) 523 526 524 527 filterVBox = gtk.VBox()
Note:
See TracChangeset
for help on using the changeset viewer.