Skip to content

Commit

Permalink
fix: Change signal/slot timeout to 10 seconds
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
swvanbuuren committed Nov 8, 2024
1 parent 9d320c1 commit 375f9d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions mlpyqtgraph/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 """
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ classifiers = [
urls = { Homepage = "https://github.com/swvanbuuren/mlpyqtgraph" }
dependencies = [
"pyqtgraph",
"pqthreads",
"pqthreads==0.4.1",
"pyopengl",
]

Expand Down

0 comments on commit 375f9d0

Please sign in to comment.