ros-visualization / python_qt_binding

http://wiki.ros.org/python_qt_binding
BSD 3-Clause "New" or "Revised" License
34 stars 54 forks source link

Select Qt binding via environment #49

Closed machinekoder closed 4 years ago

machinekoder commented 6 years ago

At the moment one needs to modify the `sys' module to select a specific Qt binding or to alter the binding order. I think it would be beneficial to also provide a way to change the Qt binding via environment variable.

E.g.

export PYTHON_QT_BINDING=pyside
./run.py
dirk-thomas commented 6 years ago

Applications using this library (e.g. rqt) have their own command line arguments to choose the binding: https://github.com/ros-visualization/qt_gui_core/blob/9ebbf808438af6355a4313439f04a0b81559998c/qt_gui/src/qt_gui/main.py#L76-L77

Adding support for an environment variable would also be possible. Please consider to provide a pull request to add this feature and make sure that it works well with existing applications.

dirk-thomas commented 4 years ago

Closing due to no activity for a long time. Please feel free to contribute a pull request to implement the feature idea.