On Tuesday 11 January 2011 16:32:53 Dan Lee wrote: > sure -- I have pyside-qt4.7+1.0.0.0~beta2, qt-mobility-opensource-1.2.0, > qt-everywhere-opensource-src-4.7.1, on ubuntu 10.10 desktop with python > 2.6.6. I'm trying to run 'python > pyside-pyside-examples/examples/declarative/extending/chapter1-basics/basic > s.py' which imports everything from QtDeclarative, among others. the full > traceback is : > " > Traceback (most recent call last): > File "basics.py", line 74, in <module> > qmlRegisterType(PieChart, 'Charts', 1, 0, 'PieChart'); > NameError: name 'qmlRegisterType' is not defined > "
The function is there, I'm sure, probably you have another PySide installed somewhere, try to add: "print PySide.__version__" to check it. > I'm not sure what else would be helpful to know -- several of the other > pyside examples I've tried have worked, but none in the folder about > extending. the first 4 chapters fail because of qmlRegisterType, while > the last one gives: " > Traceback (most recent call last): > File > "/foo/pyside-pyside-examples/examples/declarative/extending/chapter5-listpr > operties/listproperties.py", line 80, in <module> > class PieChart (QDeclarativeItem): > File > "/foo/pyside-pyside-examples/examples/declarative/extending/chapter5-listpr > operties/listproperties.py", line 99, in PieChart > slices = ListProperty(PieSlice, appendSlice) > NameError: name 'ListProperty' is not defined > " > > please let me know if you need more information > > best, > -d -- Hugo Parente Lima INdT - Instituto Nokia de Tecnologia
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ PySide mailing list [email protected] http://lists.openbossa.org/listinfo/pyside
