[PyQt] Get parameter types from Python

Phil Thompson phil at riverbankcomputing.com
Mon May 5 18:30:24 BST 2014

On 05/05/2014 5:41 pm, Eric Frederich wrote:
> Hello,
> I was wondering if there is a way to dynamically determine the
> parameter types for a PyQt callable from within Python.
> For example, can I somehow determine that QApplication takes a single
> argument that is a list of strings?
> The reason I ask is that I'm trying to see if I can easily write a Qt
> application using TCL via the tkinter module.  The tkinter module
> bridges Python and TCL.
> It is trivial to get TCL to call Python code via a "createcommand"
> method on a Tkinter.Tcl instace.
>  The problem is that in TCL everything is a string so I need to coerce
> the TCL arguments into the proper Python types.

The docstrings are automatically generated so in a consistent format.


More information about the PyQt mailing list