]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/samples/frogedit/StatusBar.py
adapted to new font setter
[wxWidgets.git] / wxPython / samples / frogedit / StatusBar.py
... / ...
CommitLineData
1import os.path
2import wx
3
4class CustomStatusBar(wx.StatusBar):
5 def __init__(self, parent):
6 wx.StatusBar.__init__(self, parent, -1)
7 self.SetFieldsCount(3)
8
9 def setFileName(self, fn):
10 path, fileName = os.path.split(fn)
11 self.SetStatusText(fileName, 0)
12
13 def setRowCol(self, row, col):
14 self.SetStatusText("%d,%d" % (row,col), 1)
15
16 def setDirty(self, dirty):
17 if dirty:
18 self.SetStatusText("...", 2)
19 else:
20 self.SetStatusText(" ", 2)
21