aboutsummaryrefslogtreecommitdiffstats
path: root/examples/graphs/3d/widgetgraphgallery/rainfalldata.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/graphs/3d/widgetgraphgallery/rainfalldata.py')
-rw-r--r--examples/graphs/3d/widgetgraphgallery/rainfalldata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/graphs/3d/widgetgraphgallery/rainfalldata.py b/examples/graphs/3d/widgetgraphgallery/rainfalldata.py
index 283b421e7..a5339672e 100644
--- a/examples/graphs/3d/widgetgraphgallery/rainfalldata.py
+++ b/examples/graphs/3d/widgetgraphgallery/rainfalldata.py
@@ -96,7 +96,7 @@ class RainfallData(QObject):
# Read data from a data file into the data item list
file_path = Path(__file__).resolve().parent / "data" / "raindata.txt"
dataFile = QFile(file_path)
- if dataFile.open(QIODevice.ReadOnly | QIODevice.Text):
+ if dataFile.open(QIODevice.OpenModeFlag.ReadOnly | QIODevice.OpenModeFlag.Text):
data = dataFile.readAll().data().decode("utf8")
for line in data.split("\n"):
if line and not line.startswith("#"): # Ignore comments