New ScreenPanel
This commit is contained in:
67
script/test/TestPyObj.py
Executable file
67
script/test/TestPyObj.py
Executable file
@@ -0,0 +1,67 @@
|
||||
class TestClass:
|
||||
def __init__(self):
|
||||
self.data = 10
|
||||
|
||||
def f1(self, p1 = 3, p2 = 4.0, p3 = False):
|
||||
pass
|
||||
|
||||
def f2(self, p1 = "asd", *argv, **kw):
|
||||
pass
|
||||
|
||||
def f3(self, p1 = [1,2,3], **kw):
|
||||
pass
|
||||
|
||||
def f4(self, p1 = {"v1":2.3}, *argv):
|
||||
pass
|
||||
|
||||
obj = TestClass()
|
||||
print obj.data
|
||||
|
||||
|
||||
|
||||
class TestClassDev (DeviceBase):
|
||||
def __init__(self):
|
||||
self.data = 10
|
||||
|
||||
def doInitialize(self):
|
||||
pass
|
||||
|
||||
def update(self):
|
||||
pass
|
||||
|
||||
def f1(self, p1 = 3, p2 = 4.0, p3 = False):
|
||||
pass
|
||||
|
||||
def f2(self, p1 = "asd", *argv, **kw):
|
||||
pass
|
||||
|
||||
def f3(self, p1 = [1,2,3], **kw):
|
||||
pass
|
||||
|
||||
def f4(self, p1 = {"v1":2.3}, *argv):
|
||||
pass
|
||||
|
||||
o2 = TestClassDev()
|
||||
|
||||
|
||||
|
||||
class TestClassRead (Readable):
|
||||
def __init__(self):
|
||||
self.data = 10
|
||||
|
||||
def f1(self, p1 = 3, p2 = 4.0, p3 = False):
|
||||
pass
|
||||
|
||||
def f2(self, p1 = "asd", *argv, **kw):
|
||||
pass
|
||||
|
||||
def f3(self, p1 = [1,2,3], **kw):
|
||||
pass
|
||||
|
||||
def f4(self, p1 = {"v1":2.3}, *argv):
|
||||
pass
|
||||
|
||||
def read(self):
|
||||
return 1
|
||||
|
||||
o3 = TestClassRead()
|
||||
Reference in New Issue
Block a user