From 96a8cca1483e636da438b7496dc5db8f355028a7 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Sun, 13 Jun 2021 00:20:49 -0400 Subject: funcGenerator preload PyQtGraph QtCore method as a fallback mechanism --- funcGenerator.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/funcGenerator.py b/funcGenerator.py index fdd56a5..caccacc 100644 --- a/funcGenerator.py +++ b/funcGenerator.py @@ -2,6 +2,11 @@ import time # For sleep, clock, time and perf_counter from datetime import datetime, timedelta import numpy as np +try: + from pyqtgraph.Qt import QtCore +except: + pass + class SinGen: def __init__(self, ampl=1, offset=0, phase=0, sweeper=None): self.ampl = ampl -- cgit v1.2.3