Changeset 919:2ce8ca39525b for src/mlx/gui/timetable.py
- Timestamp:
- 03/24/19 08:15:59 (5 years ago)
- Branch:
- python3
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/timetable.py
r879 r919 4 4 5 5 from mlx.gui.common import * 6 from flightlist import ColumnDescriptor6 from .flightlist import ColumnDescriptor 7 7 from mlx.rpc import ScheduledFlight 8 8 … … 249 249 self._tooltips.set_tip(widget, "") 250 250 self._tooltips.disable() 251 except Exception ,e:252 print e251 except Exception as e: 252 print(e) 253 253 self._tooltips.set_tip(widget, "") 254 254 self._tooltips.disable() … … 656 656 typeFamilies.add(const.aircraftType2Family(aircraftType)) 657 657 658 for (typeFamily, checkButton) in self._typeFamilyButtons.ite ritems():658 for (typeFamily, checkButton) in self._typeFamilyButtons.items(): 659 659 checkButton.set_sensitive(typeFamily in typeFamilies) 660 660 … … 712 712 """Update the timetable list.""" 713 713 aircraftTypes = [] 714 for (aircraftFamily, button) in self._typeFamilyButtons.ite ritems():714 for (aircraftFamily, button) in self._typeFamilyButtons.items(): 715 715 if button.get_active(): 716 716 aircraftTypes += const.aircraftFamily2Types[aircraftFamily]
Note:
See TracChangeset
for help on using the changeset viewer.