sample.py
829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/python
#-*- coding: utf-8
import inspect
import tn3270
print("Teste extensão pw3270")
print("Using TN3270 Version " + tn3270.version())
print(tn3270.revision())
session = tn3270.Session("")
print("Using tn3270 version " + session.version + " revision " + session.revision)
print(session.cstate)
print(session.width)
print(session.connected)
print(session.url)
session.connect('')
print(session.connected)
print('----------------------')
inspect.getmembers(session)
print('----------------------')
#print term.IsConnected()
#print term.IsReady()
#print term.GetStringAt(14,19,38)
#print "-----------------------------------------------------------------------"
#print term
#print "-----------------------------------------------------------------------"
del session
input("Press enter to exit")