Skip to content

Commit

Permalink
add test for SIGNAL
Browse files Browse the repository at this point in the history
  • Loading branch information
Diogo-Rossi committed Apr 23, 2023
1 parent 3fbbf4c commit bdfa7bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/signal_slot.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import typing

from PySide2.QtCore import Signal, QObject
from PySide2.QtCore import Signal, QObject, SIGNAL


class SomeClassWithSignal(QObject):
Expand All @@ -10,6 +10,7 @@ class SomeClassWithSignal(QObject):

def __init__(self) -> None:
super().__init__() # note: this is mandatory for mypy to pickup the class attribute access
self.connect(self,SIGNAL('test'),self.my_slot_no_arg)

def my_slot_no_arg(self) -> None:
pass
Expand Down

0 comments on commit bdfa7bb

Please sign in to comment.