/[escript]/trunk/pyvisi/py_src/renderers/gnuplot/text.py
ViewVC logotype

Contents of /trunk/pyvisi/py_src/renderers/gnuplot/text.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 605 - (show annotations)
Mon Mar 20 07:16:27 2006 UTC (13 years, 7 months ago) by gross
File MIME type: text/x-python
File size: 1579 byte(s)
pyvisi with vtk runs noe on the altix
1 # Copyright (C) 2004-2005 Paul Cochrane
2 #
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16
17 # $Id: text.py,v 1.10 2005/02/24 01:11:39 paultcochrane Exp $
18
19 ## @file text.py
20
21 """
22 Class and functions associated with a pyvisi Text object
23 """
24
25 # generic imports
26 from common import debugMsg
27
28 # module specific imports
29 from item import Item
30
31 __revision__ = '$Revision: 1.10 $'
32
33 class Text(Item):
34 """
35 Text
36 """
37 def __init__(self):
38 """
39 Initialisation of the Text object
40 """
41 debugMsg("Called Text.__init__()")
42 Item.__init__(self)
43 self.font = "Times"
44
45 def setFont(self, font):
46 """
47 Set the current font
48
49 @param font: the font to set
50 @type font: string
51 """
52 self.font = font
53 return
54
55 def getFont(self):
56 """
57 Get the current font
58 """
59 return self.font
60
61 # vim: expandtab shiftwidth=4:

  ViewVC Help
Powered by ViewVC 1.1.26