Author: duncan
Date: Sun Feb 4 19:53:50 2007
New Revision: 9159
Added:
branches/rel-1/freevo/contrib/runtime/pylcd-test.py
Log:
Added the pylcd test program, for a simple test of the lcdproc installation
Added: branches/rel-1/freevo/contrib/runtime/pylcd-test.py
==============================================================================
--- (empty file)
+++ branches/rel-1/freevo/contrib/runtime/pylcd-test.py Sun Feb 4 19:53:50 2007
@@ -0,0 +1,36 @@
+#!/usr/bin/python -tt
+# -*- coding: iso-8859-1 -*-
+import sys,pylcd,os
+
+p=pylcd.client()
+print 'Connect message:', p.connect()
+print 'Info as know by the module:'
+p.getinfo()
+print 'Setting some info to the display.'
+
+(sysname, nodename, release, version, machine)=os.uname()
+
+s='s'
+w1='w1'
+w2='w2'
+w3='w3'
+
+p.screen_add(s)
+p.widget_add(s,w1,'string')
+p.widget_add(s,w2,'string')
+p.widget_add(s,w3,'string')
+p.widget_set(s,w1,'1 1 "Hello, LCD world!"')
+print 'printing "Hello, LCD world!"'
+p.widget_set(s,w2,'1 2 "%s: %s"'%(nodename, release))
+print 'printing "%s: %s"'%(nodename, release)
+p.widget_set(s,w3,'1 3 "����"')
+print 'printing "����"'
+
+print 'All done.'
+
+try:
+ raw_input('Press a key to continue')
+except EOFError:
+ print '\nEOF'
+
+print 'Exit.'
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog