Author: DavidCzech
Date: 2008-01-03 01:22:58 +0000 (Thu, 03 Jan 2008)
New Revision: 734

Added:
   trunk/pysoy/src/actions/Stdout.pxi
Log:
StdoutAction

Added: trunk/pysoy/src/actions/Stdout.pxi
===================================================================
--- trunk/pysoy/src/actions/Stdout.pxi                          (rev 0)
+++ trunk/pysoy/src/actions/Stdout.pxi  2008-01-03 01:22:58 UTC (rev 734)
@@ -0,0 +1,33 @@
+# PySoy actions.Quit class
+#
+# Copyright (C) 2006,2007,2008 PySoy Group
+#
+#  This program is free software; you can redistribute it and/or modify
+#  it under the terms of the GNU General Public License as published by
+#  the Free Software Foundation; either version 3 of the License, or
+#  (at your option) any later version.
+#
+#  This program is distributed in the hope that it will be useful,
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#  GNU General Public License for more details.
+#
+#  You should have received a copy of the GNU General Public License
+#  along with this program; if not, see http://www.gnu.org/licenses
+#
+# $Id: Print.pxi 732 2008-01-01 22:37:47Z DavidCzech $
+
+cdef class Stdout (Action):
+  '''PySoy Print
+  
+    When called PySoy will print to stdout. There is an argument for what text 
to print.
+    
+    See soy.actions.Action for more information.
+  '''
+  def __cinit__(self,text,*args, **kw) :
+    self.text = text
+  def __repr__(self):
+    return '<Print>'
+    
+  cdef void _perform(self, unsigned int _duration) :
+    stdio.printf("%s\n",self.text)
\ No newline at end of file

_______________________________________________
PySoy-SVN mailing list
[email protected]
http://www.pysoy.org/mailman/listinfo/pysoy-svn

Reply via email to