205 QApplication.translate("Shortcuts", "Export Keyboard Shortcuts"), |
205 QApplication.translate("Shortcuts", "Export Keyboard Shortcuts"), |
206 QApplication.translate( |
206 QApplication.translate( |
207 "Shortcuts", |
207 "Shortcuts", |
208 "<p>The keyboard shortcuts could not be written to file" |
208 "<p>The keyboard shortcuts could not be written to file" |
209 " <b>{0}</b>.</p>") |
209 " <b>{0}</b>.</p>") |
210 .format(fn)) |
210 .format(fn)) |
211 |
211 |
212 |
212 |
213 def importShortcuts(fn): |
213 def importShortcuts(fn): |
214 """ |
214 """ |
215 Module function to import the keyboard shortcuts for the defined E5Actions. |
215 Module function to import the keyboard shortcuts for the defined E5Actions. |
237 QApplication.translate("Shortcuts", "Import Keyboard Shortcuts"), |
237 QApplication.translate("Shortcuts", "Import Keyboard Shortcuts"), |
238 QApplication.translate( |
238 QApplication.translate( |
239 "Shortcuts", |
239 "Shortcuts", |
240 "<p>The keyboard shortcuts could not be read from file" |
240 "<p>The keyboard shortcuts could not be read from file" |
241 " <b>{0}</b>.</p>") |
241 " <b>{0}</b>.</p>") |
242 .format(fn)) |
242 .format(fn)) |
243 return |
243 return |
244 |
244 |
245 |
245 |
246 def __setAction(actions, sdict): |
246 def __setAction(actions, sdict): |
247 """ |
247 """ |