]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/samples/frogedit/StatusBar.py
added default style wxFRAME_TOOL_WINDOW to creation
[wxWidgets.git] / wxPython / samples / frogedit / StatusBar.py
... / ...
CommitLineData
1from wxPython.wx import *
2
3import os.path
4
5class 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