/[ascend]/trunk/pygtk/run.py
ViewVC logotype

Contents of /trunk/pygtk/run.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (show annotations) (download) (as text)
Mon Apr 24 02:23:08 2006 UTC (18 years, 1 month ago) by johnpye
File MIME type: text/x-python
File size: 310 byte(s)
Removed 'interface' directory in trunk/pygtk/interface (moved everything up a level)
Made corresponding changes to SCons* and spec files.
1 import sys, dl
2 sys.setdlopenflags(dl.RTLD_GLOBAL|dl.RTLD_NOW)
3 import ascpy, gtkbrowser
4
5 L = ascpy.Library()
6 L.load("clfr-models/water4.a4c")
7 t = L.findType("steam_state")
8 t2 = L.findType("solver_var")
9 sim = t.getSimulation("i")
10 sim.build()
11 b = gtkbrowser.Browser(sim)
12 b.run()
13
14 print "BACK AT TOP LEVEL"
15 del(b)

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