Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed QWidget not defined bug in rviz_python_tutorial #41

Conversation

zchen24
Copy link
Contributor

@zchen24 zchen24 commented Feb 11, 2018

See also issue #39

try:
from python_qt_binding.QtWidgets import *
except ImportError:
pass
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the rationale behind doing a silent pass on import failure here? In what situation does this fail?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QApplication is in QtWidgets in Qt5. My intent is to import QtWidgets only when using Qt5

@wjwwood wjwwood merged commit a92afd3 into ros-visualization:kinetic-devel May 10, 2018
@wjwwood
Copy link
Member

wjwwood commented May 10, 2018

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants