Embed? not exactly.
Find out where the status bar is and draw a progressbar on top of it? Yes.
If self is a wxFrame.... something like this should work:
statusbar = self.GetStatusBar()
statusBar().SetFieldsCount(3)
# Create and install the gauge
rect = statusBar().GetFieldRect(1)
gauge = wxGauge(statusBar(), -1, 100,
wxPoint(rect.x + 2, rect.y + 2),
wxSize(rect.width - 4, rect.height - 4))
The numbers for the size / point fiddling are probably tiny bits of
guesswork to make it look right.
Anyway, there might be a more sensible solution, but this works.
Muz
···
-----Original Message-----
From: Alessandro Crugnola *sephiroth* [mailto:wishmaster@sephiroth.it]
Sent: 21 October 2003 16:35
To: wxPython-users@lists.wxwindows.org
Subject: [wxPython-users] wxProgress into statusbar?
Hi,
is it possible to embed a progress bar into the statusbar of a frame window?
Alessandro Crugnola [aka] sephiroth
Flash | PHP Developer
http://www.sephiroth.it
Team Macromedia Volunteer for Flash
http://www.macromedia.com/go/team
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org