Changeset 1004:09bc17c7f94e for src/mlx/fsuipc.py
- Timestamp:
- 07/06/19 14:15:10 (5 years ago)
- Branch:
- python3
- Phase:
- public
- File:
-
- 1 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:
Note:
See TracChangeset
for help on using the changeset viewer.