Skip to content

adjusted import for melodic #18

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,5 @@ target/

#Ipython Notebook
.ipynb_checkpoints

.idea
3 changes: 2 additions & 1 deletion src/rqt_launchtree/launchtree_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
from rqt_gui_py.plugin import Plugin

from python_qt_binding.QtCore import Qt
from python_qt_binding.QtGui import QInputDialog
# from python_qt_binding.QtGui import QInputDialog
from python_qt_binding.QtWidgets import QInputDialog

from rqt_launchtree.launchtree_widget import LaunchtreeWidget

Expand Down
5 changes: 3 additions & 2 deletions src/rqt_launchtree/launchtree_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

from python_qt_binding import loadUi
from python_qt_binding.QtCore import Qt, Signal
from python_qt_binding.QtGui import QFileDialog, QWidget, QIcon, QTreeWidgetItem, QColor
from python_qt_binding.QtGui import QIcon, QColor
from python_qt_binding.QtWidgets import QFileDialog, QWidget, QTreeWidgetItem

class LaunchtreeEntryItem(QTreeWidgetItem):
_type_order = [dict, roslaunch.core.Node, LaunchtreeRosparam, roslaunch.core.Param, LaunchtreeRemap, LaunchtreeArg, object]
Expand Down Expand Up @@ -321,7 +322,7 @@ def filter_launch_entry(entry):

show &= search_text in entry.text(0)
if show:
entry.setBackgroundColor(0, self._highlight_color if highlight else self._neutral_color)
entry.setBackground(0, self._highlight_color if highlight else self._neutral_color)

if entry.childCount() > 0:
not_empty = any(map(filter_launch_entry, map(entry.child, range(entry.childCount()))))
Expand Down