2001-11-30 21:25:39 -05:00
|
|
|
import os.path
|
2004-01-12 22:28:11 -05:00
|
|
|
import wx
|
2001-11-30 21:25:39 -05:00
|
|
|
|
2004-01-12 22:28:11 -05:00
|
|
|
class CustomStatusBar(wx.StatusBar):
|
2001-11-30 21:25:39 -05:00
|
|
|
def __init__(self, parent):
|
2004-01-12 22:28:11 -05:00
|
|
|
wx.StatusBar.__init__(self, parent, -1)
|
2001-11-30 21:25:39 -05:00
|
|
|
self.SetFieldsCount(3)
|
|
|
|
|
|
|
|
def setFileName(self, fn):
|
|
|
|
path, fileName = os.path.split(fn)
|
|
|
|
self.SetStatusText(fileName, 0)
|
|
|
|
|
|
|
|
def setRowCol(self, row, col):
|
|
|
|
self.SetStatusText("%d,%d" % (row,col), 1)
|
|
|
|
|
|
|
|
def setDirty(self, dirty):
|
|
|
|
if dirty:
|
|
|
|
self.SetStatusText("...", 2)
|
|
|
|
else:
|
|
|
|
self.SetStatusText(" ", 2)
|
|
|
|
|