]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/frogedit/StatusBar.py
1 from wxPython
.wx
import *
5 class CustomStatusBar(wxStatusBar
):
6 def __init__(self
, parent
):
7 wxStatusBar
.__init
__(self
, parent
, -1)
10 def setFileName(self
, fn
):
11 path
, fileName
= os
.path
.split(fn
)
12 self
.SetStatusText(fileName
, 0)
14 def setRowCol(self
, row
, col
):
15 self
.SetStatusText("%d,%d" % (row
,col
), 1)
17 def setDirty(self
, dirty
):
19 self
.SetStatusText("...", 2)
21 self
.SetStatusText(" ", 2)