Changeset 1004:09bc17c7f94e for src/mlx/xplane.py
- Timestamp:
- 07/06/19 14:15:10 (5 years ago)
- Branch:
- python3
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/xplane.py
r973 r1004 1143 1143 self._handler.disconnect() 1144 1144 1145 def _handleHotkeysRegistered(self, success, xxx_todo_changeme2):1145 def _handleHotkeysRegistered(self, success, hotkeySet): 1146 1146 """Handle the result of the hotkeys having been written.""" 1147 (id, generation) = xxx_todo_changeme21147 (id, generation) = hotkeySet 1148 1148 with self._hotkeyLock: 1149 1149 if success and id==self._hotkeySetID and \ … … 1152 1152 self._handler.requestHotkeysState(0.5, 1153 1153 self._handleHotkeys, 1154 (id, generation))1155 1156 def _handleHotkeys(self, data, xxx_todo_changeme3):1154 hotkeySet) 1155 1156 def _handleHotkeys(self, data, hotkeySet): 1157 1157 """Handle the hotkeys.""" 1158 (id, generation) = xxx_todo_changeme31158 (id, generation) = hotkeySet 1159 1159 with self._hotkeyLock: 1160 1160 if id!=self._hotkeySetID or generation!=self._hotkeySetGeneration: … … 1753 1753 """Model handler for the FlyJSim Dash 8-Q400.""" 1754 1754 @staticmethod 1755 def doesHandle(aircraft, xxx_todo_changeme):1755 def doesHandle(aircraft, data): 1756 1756 """Determine if this model handler handles the aircraft with the given 1757 1757 name.""" 1758 (tailnum, author, description, notes, 1759 icao, liveryPath) = xxx_todo_changeme 1758 (tailnum, author, description, notes, icao, liveryPath) = data 1760 1759 return aircraft.type==const.AIRCRAFT_DH8D and \ 1761 1760 description.find("Dash 8 Q400")!=-1 and \ … … 1915 1914 """Model for Felis' Tupolev Tu-154-M aircraft.""" 1916 1915 @staticmethod 1917 def doesHandle(aircraft, xxx_todo_changeme1):1916 def doesHandle(aircraft, data): 1918 1917 """Determine if this model handler handles the aircraft with the given 1919 1918 name.""" 1920 (tailnum, author, description, notes, 1921 icao, liveryPath) = xxx_todo_changeme1 1919 (tailnum, author, description, notes, icao, liveryPath) = data 1922 1920 return aircraft.type==const.AIRCRAFT_T154 and \ 1923 1921 author.find("Felis")!=-1 and \
Note:
See TracChangeset
for help on using the changeset viewer.