From 375f9d0e71b238924d6fa7e7b1e2594b67875dfc Mon Sep 17 00:00:00 2001 From: Sietze van Buuren Date: Fri, 8 Nov 2024 20:28:14 +0100 Subject: [PATCH] fix: Change signal/slot timeout to 10 seconds On some platforms it might take a long time for a figure to appear. To avoid unreceived messages due to timeouts, the timeout has been increased to 10s. Signed-off-by: Sietze van Buuren --- mlpyqtgraph/__init__.py | 4 ++++ pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mlpyqtgraph/__init__.py b/mlpyqtgraph/__init__.py index e5d087d..b52fceb 100644 --- a/mlpyqtgraph/__init__.py +++ b/mlpyqtgraph/__init__.py @@ -3,6 +3,7 @@ used as interface """ +from pqthreads import config as pqthreads_config from pqthreads import decorator from mlpyqtgraph import windows from mlpyqtgraph import axes @@ -16,6 +17,9 @@ __version__ = '0.3.0' +pqthreads_config.params.signal_slot_timeout = 10_000 + + class OptionsDecoratorCore(decorator.DecoratorCore): """ Decorator take also takes keyword arguments and sets them as config options """ diff --git a/pyproject.toml b/pyproject.toml index 3de16ac..d16530a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,7 @@ classifiers = [ urls = { Homepage = "https://github.com/swvanbuuren/mlpyqtgraph" } dependencies = [ "pyqtgraph", - "pqthreads", + "pqthreads==0.4.1", "pyopengl", ]