diff options
-rw-r--r-- | doc/newsigslot.rst | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/doc/newsigslot.rst b/doc/newsigslot.rst index b73a6b997..15e9fca1c 100644 --- a/doc/newsigslot.rst +++ b/doc/newsigslot.rst @@ -30,16 +30,12 @@ New way: Signal() and Slot() The new-style uses a different syntax to create and to connect signals/slots. The previous example could be rewritten as: :: - + ... def someFunc(): print "someFunc has been called!" - ... - - clicked = QtCore.Signal() - button = QtGui.QPushButton("Call someFunc") button.clicked.connect(someFunc) |