]> git.ipfire.org Git - thirdparty/newt.git/blobdiff - peanuts.py
install python modules to purelib and platlib
[thirdparty/newt.git] / peanuts.py
index a7d5688edc71f099bf88e3f8719e0462f9cbccd6..535571dbb9ac757687d5f113a3bbd50ae00970eb 100755 (executable)
@@ -1,5 +1,8 @@
 #!/usr/bin/python
 
+# Demo program to show use of python-newt module
+
+from __future__ import absolute_import, print_function, unicode_literals
 from snack import *
 
 screen = SnackScreen()
@@ -36,8 +39,8 @@ result = g.runOnce()
 
 screen.finish()
 
-print result
-print "listbox:", li.current()
-print "rb:", rb.getSelection()
-print "bb:", bb.buttonPressed(result)
-print "checkboxtree:", ct.getSelection()
+print(result)
+print("listbox:", li.current())
+print("rb:", rb.getSelection())
+print("bb:", bb.buttonPressed(result))
+print("checkboxtree:", ct.getSelection())