1
0
Fork 0
PythonQt/examples/PyCustomMetaTypeExample/example.py

15 lines
307 B
Python

from PythonQt.example import CustomObject
# 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())