<p>Many times I will use the same font scheme for static text in a wxPython application. Currently I am making a <code>SetFont()</code> call for each static text object but that seems like a lot of unnecessary work. However, the wxPython demo and wxPython In Action book don't discuss this.</p>

<p>Is there a way to easily apply the same <code>SetFont()</code> method to all these text objects without making separate calls each time?</p>

Maybe try subclassing the text object and in your class
```
__init__
```
method just call SetFont()?
Or, do something like:
```
```
def f(C):
  x = C()
  x.SetFont(font) # where font is defined somewhere else
  return x
```
```
and then just decorate every text object you create with with it:
```
```
text = f(wx.StaticText)
```
```
(of course, if
```
StaticText
```
constructor requires some parameters, it will require changing the first lines in
```
f
```
function definition).