mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
8 lines
279 B
Python
8 lines
279 B
Python
from Shiboken2QtExample import QObjectWithEnum
|
|
|
|
a = QObjectWithEnum()
|
|
a.someSignal.connect(lambda x: print("Signal emitted: %s" % x))
|
|
a.aSlot()
|
|
print("int(QObjectWithEnum.MyEnum.Values) =",
|
|
int(QObjectWithEnum.MyEnum.Values))
|
|
a.nonSlotFunction(QObjectWithEnum.MyEnum.Some)
|