コード例 #1
0
ファイル: example.py プロジェクト: tonka3000/PythonQt
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())
コード例 #2
0
ファイル: example.py プロジェクト: goldnd/CGoGN
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())
コード例 #3
0
ファイル: example.py プロジェクト: MarekAG/screencloud
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();
コード例 #4
0
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()