/[ascend]/trunk/models/johnpye/extpy/extpytest.py
ViewVC logotype

Diff of /trunk/models/johnpye/extpy/extpytest.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 874 by johnpye, Thu Oct 5 14:51:49 2006 UTC revision 875 by johnpye, Sat Oct 7 06:26:34 2006 UTC
# Line 1  Line 1 
1  import extpy;  import extpy;
2  browser = extpy.getbrowser()  browser = extpy.getbrowser()
3    
4    import ascpy;
5    
6  def mypythonmethod(inst):  def mypythonmethod(inst):
7        inst = ascpy.Registry().getInstance('context')
8        print "HELLO FROM PYTHON"
9        for i in inst.getChildren():
10            print i.getName()," = ",i.getValue()
11    
12      """I don't want to talk to you no more, you empty headed animal food trough wiper!"""      """I don't want to talk to you no more, you empty headed animal food trough wiper!"""
13      browser.reporter.reportNote("No, now go away or I shall taunt you a second time!")      browser.reporter.reportNote("No, now go away or I shall taunt you a second time!")
14    

Legend:
Removed from v.874  
changed lines
  Added in v.875

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22