]> git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/frogedit/StatusBar.py
Inital fill in background, removed tabs, -1->wxID_ANY, TRUE->true, FALSE->false
[wxWidgets.git] / wxPython / samples / frogedit / StatusBar.py
1 import os.path
2 import wx
3
4 class 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