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