##// END OF EJS Templates
fixed example for 2.0 API...
fixed example for 2.0 API git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@190 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r151:a5a8aa72950d
r151:a5a8aa72950d
Show More
example.py
14 lines | 290 B | text/x-python | PythonLexer
florianlink
fixed example for 2.0 API...
r151 from PythonQt.example import CustomObject
ezust
reorganized SVN tree into branches, tags and trunk...
r0
# create a new object
custom = CustomObject("John","Doe")
# print the methods available
print dir(custom)
# set a name
custom.setFirstName("Mike")
custom.setLastName("Michels")
# get the name
print custom.firstName() + " " + custom.lastName();