##// END OF EJS Templates
Added generator to install targets and removed examples from build.
Added generator to install targets and removed examples from build.

File last commit:

r11:b89840e63daa default
r12:17486c75e366 tip default
Show More
example.py
19 lines | 389 B | text/x-python | PythonLexer
from PythonQt.example import *
print("CustomObject wrapped by decorators")
# create a new object
custom = CustomObject("John","Doe")
# print the object (to see how it is wrapped)
print (custom)
# print the methods available
print (dir(custom))
# set a name
custom.setFirstName("Mike")
custom.setLastName("Michels")
# get the name
print (custom.firstName() + " " + custom.lastName())