Even if there is no plan to write a WxPython version of qt_message_router any time soon, it might make sense to put some of the machinery in place to allow it.
The simplest approach for now would be to check that the value of ETSConfig.toolkit is either qt4 or qt before importing qt_message_router and throw a reasonable exception if not.
A slightly better approach would be to have an entry point for the message router keyed off the value of ETSConfig.toolkit which would at least allow 3rd parties to contribute their own message router.
EDIT [mdickinson, 2018-08-04; adding subtasks]
Subtasks:
Even if there is no plan to write a WxPython version of
qt_message_routerany time soon, it might make sense to put some of the machinery in place to allow it.The simplest approach for now would be to check that the value of
ETSConfig.toolkitis eitherqt4orqtbefore importingqt_message_routerand throw a reasonable exception if not.A slightly better approach would be to have an entry point for the message router keyed off the value of
ETSConfig.toolkitwhich would at least allow 3rd parties to contribute their own message router.EDIT [mdickinson, 2018-08-04; adding subtasks]
Subtasks: