wxWidgets/wxPython/samples/frogedit/StatusBar.py
Robin Dunn 2571247b80 API and etc. updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-13 03:28:11 +00:00

22 lines
521 B
Python

import os.path
import wx
class CustomStatusBar(wx.StatusBar):
def __init__(self, parent):
wx.StatusBar.__init__(self, parent, -1)
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)