On 08/05/14 00:23, Steven G. Johnson wrote:
On Wednesday, May 7, 2014 6:37:02 PM UTC-4, Samuele Carcagno wrote:but when I try to convert it to a string with PySide I get: julia> QtCore["QDateTime"][:toString](QtCore["QDateTime"][:currentDateTime]()) ERROR: type: apply: expected Function, got PyObject Maybe pycall(QtCore["QDateTime"]["toString"], PyAny, QtCore["QDateTime"][:currentDateTime]())
yes that works!
? It could be the problem is that PyCall doesn't realize that toString is a function. (In Python, so many object types can be callable, it's not possible to convert all of them automatically to Julia functions. So sometimes in PyCall you have to use pycall or convert to the desired type manually via the convert function.)
Thank you for the explanation. Cheers, Sam
