Changeset 1004:09bc17c7f94e for src
- Timestamp:
- 07/06/19 14:15:10 (5 years ago)
- Branch:
- python3
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/fsuipc.py
r968 r1004 1093 1093 self._handler.disconnect() 1094 1094 1095 def _handleNumHotkeys(self, data, xxx_todo_changeme5):1095 def _handleNumHotkeys(self, data, hotkeySet): 1096 1096 """Handle the result of the query of the number of hotkeys""" 1097 (id, generation) = xxx_todo_changeme51097 (id, generation) = hotkeySet 1098 1098 with self._hotkeyLock: 1099 1099 if id==self._hotkeySetID and generation==self._hotkeySetGeneration: … … 1102 1102 data = [(0x3210 + i*4, "d") for i in range(0, numHotkeys)] 1103 1103 self._handler.requestRead(data, self._handleHotkeyTable, 1104 (id, generation))1104 hotkeySet) 1105 1105 1106 1106 def _setupHotkeys(self, data): … … 1145 1145 return writeData 1146 1146 1147 def _handleHotkeyTable(self, data, xxx_todo_changeme6):1147 def _handleHotkeyTable(self, data, hotkeySet): 1148 1148 """Handle the result of the query of the hotkey table.""" 1149 (id, generation) = xxx_todo_changeme61149 (id, generation) = hotkeySet 1150 1150 with self._hotkeyLock: 1151 1151 if id==self._hotkeySetID and generation==self._hotkeySetGeneration: … … 1153 1153 self._handler.requestWrite(writeData, 1154 1154 self._handleHotkeysWritten, 1155 (id, generation))1156 1157 def _handleHotkeysWritten(self, success, xxx_todo_changeme7):1155 hotkeySet) 1156 1157 def _handleHotkeysWritten(self, success, hotkeySet): 1158 1158 """Handle the result of the hotkeys having been written.""" 1159 (id, generation) = xxx_todo_changeme71159 (id, generation) = hotkeySet 1160 1160 with self._hotkeyLock: 1161 1161 if success and id==self._hotkeySetID and \ … … 1166 1166 self._handler.requestPeriodicRead(0.5, data, 1167 1167 self._handleHotkeys, 1168 (id, generation))1169 1170 def _handleHotkeys(self, data, xxx_todo_changeme8):1168 hotkeySet) 1169 1170 def _handleHotkeys(self, data, hotkeySet): 1171 1171 """Handle the hotkeys.""" 1172 (id, generation) = xxx_todo_changeme81172 (id, generation) = hotkeySet 1173 1173 with self._hotkeyLock: 1174 1174 if id!=self._hotkeySetID or generation!=self._hotkeySetGeneration: -
src/mlx/gui/flight.py
r1003 r1004 5199 5199 pass 5200 5200 5201 def _formatTime(self, scheduledTime, realTimestamp, xxx_todo_changeme):5201 def _formatTime(self, scheduledTime, realTimestamp, warningError): 5202 5202 """Format the departure or arrival time based on the given data as a 5203 5203 markup for a label.""" 5204 (warning, error) = xxx_todo_changeme5204 (warning, error) = warningError 5205 5205 realTime = time.gmtime(realTimestamp) 5206 5206 -
src/mlx/util.py
r929 r1004 43 43 #------------------------------------------------------------------------------ 44 44 45 def getCoordinateString( xxx_todo_changeme):45 def getCoordinateString(coordinates): 46 46 """Get the string representation of the given coordinate pair.""" 47 (latitude, longitude) = xxx_todo_changeme47 (latitude, longitude) = coordinates 48 48 latitude_str = getLatitudeString(latitude) 49 49 longitude_str = getLongitudeString(longitude) -
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.