]> git.saurik.com Git - wxWidgets.git/blame - wxPython/samples/frogedit/StatusBar.py
handle mouse capture lost event in grid windows and reset the grid to normal state...
[wxWidgets.git] / wxPython / samples / frogedit / StatusBar.py
CommitLineData
1918b6f7 1import os.path
2571247b 2import wx
1918b6f7 3
2571247b 4class CustomStatusBar(wx.StatusBar):
1918b6f7 5 def __init__(self, parent):
2571247b 6 wx.StatusBar.__init__(self, parent, -1)
1918b6f7
RD
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