Quoting Martin Höfling <[EMAIL PROTECTED]>:

Here come's the problem: For each file i create a QAction object, add this to
the menu and connect it's "triggered()" signal with a python function blubb.
The problem is to distinguish from which QAction/File blubb has been called.

Any hint's how to solve this?

Put a lambda in between:

   for filename in ...:
       self.connect(action, SIGNAL("triggered()"),
               lambda self, filename: self.blubb(filename))

Regards,

--
Aaron "Optimizer" Digulla a.k.a. Philmann Dark
"It's not the universe that's limited, it's our imagination.
Follow me and I'll show you something beyond the limits."
http://www.pdark.de/

_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to