Skip to content

Commit

Permalink
Use PyQt5 for GUI
Browse files Browse the repository at this point in the history
This enables type support for GUI components
  • Loading branch information
Flova committed Feb 13, 2024
1 parent 7d572dd commit d0b2e59
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Optional, Union

import pydot
from python_qt_binding.QtGui import QStandardItem, QStandardItemModel
from PyQt5.QtGui import QStandardItem, QStandardItemModel
from rclpy.node import Node
from rclpy.qos import DurabilityPolicy, QoSProfile
from std_msgs.msg import String
Expand Down Expand Up @@ -254,9 +254,6 @@ def _append_debug_data_to_item(
):
"""
Appends debug_data of a given element and its children to a QStandardItem.
:type parent_item: python_qt_binding.QtGui.QStandardItem
:type debug_data: dict or list or int or float or str or bool
"""
if isinstance(debug_data, list):
for i, data in enumerate(debug_data):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@

import pydot
from ament_index_python import get_package_share_directory
from python_qt_binding import loadUi
from python_qt_binding.QtCore import Qt
from python_qt_binding.QtGui import QIcon, QPainter, QStandardItemModel
from python_qt_binding.QtSvg import QSvgGenerator
from python_qt_binding.QtWidgets import QFileDialog, QGraphicsScene, QWidget
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QIcon, QPainter, QStandardItemModel
from PyQt5.QtSvg import QSvgGenerator
from PyQt5.QtWidgets import QFileDialog, QGraphicsScene, QWidget
from PyQt5.uic import loadUi
from qt_dotgraph.dot_to_qt import DotToQtGenerator
from qt_dotgraph.pydotfactory import PydotFactory
from rclpy.node import Node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
# POSSIBILITY OF SUCH DAMAGE.


from python_qt_binding.QtCore import QPointF, QRectF, Qt
from python_qt_binding.QtGui import QTransform
from python_qt_binding.QtWidgets import QGraphicsView
from PyQt5.QtCore import QPointF, QRectF, Qt
from PyQt5.QtGui import QTransform
from PyQt5.QtWidgets import QGraphicsView


# ruff: noqa: N802
Expand Down
9 changes: 4 additions & 5 deletions dynamic_stack_decider_visualization/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,13 @@

<license>MIT</license>

<exec_depend version_gte="0.2.19">python_qt_binding</exec_depend>
<exec_depend>python_qt_binding</exec_depend>
<exec_depend>dynamic_stack_decider</exec_depend>
<exec_depend>python3-pyqt5</exec_depend>
<exec_depend>qt_dotgraph</exec_depend>
<exec_depend>rosgraph_msgs</exec_depend>
<exec_depend>rclpy</exec_depend>
<exec_depend>rqt_gui</exec_depend>
<exec_depend>rosgraph_msgs</exec_depend>
<exec_depend>rqt_gui_py</exec_depend>
<exec_depend>dynamic_stack_decider</exec_depend>
<exec_depend>rqt_gui</exec_depend>

<depend>python3-pydot</depend>

Expand Down

0 comments on commit d0b2e59

Please sign in to comment.