[PySide] PySide Digest, Vol 29, Issue 1

OisLone oislone at ois.idv.tw
Fri Jun 6 12:56:03 CEST 2014


於 06/06/2014 06:00 PM, pyside-request at qt-project.org 提到:
>
> You could create a closure that calls all those functions:
>
> def multifunc(*args):
>      def _multifunc():
>          for fn in args:
>              fn()
>      return _multifunc
>
> And use it like this:
>
> funcs = multifunc(FuncA, FuncB)
> q.clicked.connect (funcs)
>
>
> Code is untested but it should get you going.
>
>
> ------------------------------
>
> _______________________________________________
> PySide mailing list
> PySide at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/pyside
>
>
> End of PySide Digest, Vol 29, Issue 1
> *************************************
>
>

Thanks so much, it really helped me a lot.







More information about the PySide mailing list