於 06/06/2014 06:00 PM, [email protected] 提到: > > 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 > [email protected] > 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. _______________________________________________ PySide mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/pyside
