Skip to content

Commit

Permalink
maint: migrate to src-layout
Browse files Browse the repository at this point in the history
Fix doctest
  • Loading branch information
JSS95 committed Sep 22, 2023
1 parent 078df1c commit efe4226
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/araviq6/labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@ class NDArrayLabel(ScalableQLabel):
========
>>> import cv2
>>> from PySide6.QtWidgets import QApplication
>>> import sys
>>> from araviq6 import NDArrayLabel, get_data_path
>>> img = cv2.imread(get_data_path('hello.jpg'))
>>> from araviq6.qt_compat import QtWidgets
>>> img = cv2.imread(get_data_path("hello.jpg"))
>>> def runGUI():
... app = QApplication(sys.argv)
... app = QtWidgets.QApplication(sys.argv)
... label = NDArrayLabel()
... label.setArray(cv2.cvtColor(img, cv2.COLOR_BGR2RGB))
... label.show()
Expand Down

0 comments on commit efe4226

Please sign in to comment.