Skip to content

Commit

Permalink
Update README.md to use QtPy for QApplication initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRaybaut committed Dec 31, 2024
1 parent c652e81 commit 02ea1d6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ See documentation [online](https://pythonqwt.readthedocs.io/en/latest/) or [PDF]
## Sample

```python
import qwt
import numpy as np
from qtpy import QtWidgets as QW

import qwt

app = qwt.qt.QtGui.QApplication([])
app = QW.QApplication([])

# Create plot widget
plot = qwt.QwtPlot("Trigonometric functions")
Expand Down

0 comments on commit 02ea1d6

Please sign in to comment.