/[escript]/trunk/pyvisi/drivers/drivertext.py
ViewVC logotype

Contents of /trunk/pyvisi/drivers/drivertext.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 889 - (show annotations)
Tue Nov 7 23:42:31 2006 UTC (14 years, 3 months ago) by jongui
File MIME type: text/x-python
File size: 407 byte(s)
drivers added
1 from scene import Scene
2 from text import Text
3 from constants import *
4 from style import Style
5
6 s = Scene(renderer = "vtk_online", x_size = 800, y_size = 600)
7
8 # Set the style of the text.
9 st = Style()
10 st.setColor(BLUE)
11 st.setFontFamily("Arial")
12 st.boldOn()
13 st.shadowOn()
14 st.italicOn()
15
16 # Create a 2D text.
17 t = Text(scene = s)
18 t.setText("VTK Rendering...")
19 t.setPosition(120, 300)
20 t.setStyle(st)
21 s.render()
22

  ViewVC Help
Powered by ViewVC 1.1.26