Skip to content

Commit 02ea1d6

Browse files
committed
Update README.md to use QtPy for QApplication initialization
1 parent c652e81 commit 02ea1d6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ See documentation [online](https://pythonqwt.readthedocs.io/en/latest/) or [PDF]
2020
## Sample
2121

2222
```python
23-
import qwt
2423
import numpy as np
24+
from qtpy import QtWidgets as QW
25+
26+
import qwt
2527

26-
app = qwt.qt.QtGui.QApplication([])
28+
app = QW.QApplication([])
2729

2830
# Create plot widget
2931
plot = qwt.QwtPlot("Trigonometric functions")

0 commit comments

Comments
 (0)