##// END OF EJS Templates
Some more cleaning....
Some more cleaning. Removed useless function Converted some QDebug calls to SocExplorerEngine::message calls Added static void message(QObject* sender,const QString& message,int debugLevel=0); and static void message(const QString& sender,const QString& message,int debugLevel=0);

File last commit:

r0:1aa783210b8e default
r100:11a895cff789 pre-0.7
Show More
tcpterminaldemo.py
17 lines | 913 B | text/x-python | PythonLexer
#!/usr/bin/lppmon -e
import time
terminal=Pylppmon.TCP_Terminal_Client()
terminal.startServer()
terminal2=Pylppmon.TCP_Terminal_Client()
terminal2.startServer(2200)
terminal2.connectToServer("127.0.0.1",2200)
terminal.connectToServer()
terminal.sendText("<p><b> "+str(time.ctime())+": </b></p>"+"Hello World")
terminal2.sendText("<p><b> "+str(time.ctime())+": </b></p>"+"Hello World on terminal 2")
terminal.sendText("<p><b> "+str(time.ctime())+": </b></p>")
terminal.sendText("<p><b> "+str(time.ctime())+": </b></p>"+"<ul>HTML Items List Example:<LI>Item1</LI><LI>Item2</LI></ul>")
terminal.sendText("<p><b> "+str(time.ctime())+": </b></p>"+"<p style=\"color:#0000ff\" style=\"background-color:#00ff00\">hello</p>")
for i in range(0,100):
terminal.sendText("<p><b>"+str(time.ctime())+": </b></p>"+"<p style=\"color:#0000ff\" style=\"background-color:#00ff00\">hello "+str(i)+"</p>")
time.sleep(0.05)