Created
June 30, 2013 16:35
-
-
Save FGtatsuro/5895864 to your computer and use it in GitHub Desktop.
PySideのスロットを定義する際の注意(2) ref: http://qiita.com/FGtatsuro/items/524c85c5df88bdcc0135
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
without_arg (button1クリック時の出力) | |
with arg:True (button2クリック時の出力) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.button2.clicked[bool].connect(self.with_arg) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# (object).(signal).connect(slot) | |
self.button1.clicked.connect(self.without_arg) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment