In a computation-intensive loop, my program runs significantly faster if the
main frame is minimized--which is no surprise at all, really. However, when
the main frame is minimized I can't see the progress indicator in that
frame. To give my users some idea of progress, then, I could either use a
wxProgressDialog, or cause the "program name" displayed in the Taskbar to be
prefixed by a percentage [similar to Netzip Download Demon and other
programs]. This word save some "screen real estate", so seems a good idea
to me... however, it doesn't seem to work (Windows 98 se...)
where Frame is a module, App is a reference to the wxApp instance, and
silently Version.progname is a string...
On the other hand, I suppose I could just try using a wxProgressDialog...
there won't be much overhead, I suppose. I guess that I'd want it to be a
child of None (i.e., "the root window") so that it'll still be visible when
the main frame's minimized, is this right?
Thanks...
Chris
···
-------------------------------------------------------------------------
Chris Fama <mailto:Chris.Fama@whollysnakes.com> Phone:(07) 3870 5639
Brisbane, Australia Mobile:(0400) 833 700
-------------------------------------------------------------------------
"Computers in the future may weigh no more than 1.5 tons."
--Popular Mechanics, forecasting the relentless march of science, 1949
wxProgressDialog, or cause the "program name" displayed in the Taskbar to
be
prefixed by a percentage [similar to Netzip Download Demon and other
programs]. This word save some "screen real estate", so seems a good idea
to me... however, it doesn't seem to work (Windows 98 se...)
where Frame is a module, App is a reference to the wxApp instance, and
silently Version.progname is a string...
Call your frame's SetTitle method.
On the other hand, I suppose I could just try using a wxProgressDialog...
there won't be much overhead, I suppose. I guess that I'd want it to be a
child of None (i.e., "the root window") so that it'll still be visible
when
the main frame's minimized, is this right?
Yep.
···
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters? http://wxPython.org Relax with wxPython!
-------------------------------------------------------------------------
Chris Fama <mailto:Chris.Fama@whollysnakes.com> Phone:(07) 3870 5639
Brisbane, Australia Mobile:(0400) 833 700
-------------------------------------------------------------------------
Another possible solution would be to do the computation intensive
stuff in a separate thread so that it doesn't interfere with UI
events. Just make sure you update the progress dialog in a
thread-safe manner.
-D
···
On Thu, Feb 15, 2001 at 05:40:08PM +1000, Chris Fama wrote:
Hi all,
In a computation-intensive loop, my program runs significantly faster if the
main frame is minimized--which is no surprise at all, really. However, when
I'm also running a "computation-intensive loop" and it is pathetically slow (approx. 1 sec per cycle, with usually 20 cycles), but I don't see any speed improvement when I minimize the main frame. I'm curious because I sure would like it to run faster. Anybody would want to venture a guess why I'm not seeing a speedup such as the other gentleman?
Bob
···
At 05:40 PM 2/15/2001 +1000, you wrote:
Hi all,
In a computation-intensive loop, my program runs significantly faster if the
main frame is minimized--which is no surprise at all, really.
---------------------------------------------
Robert B. Klimek
NASA Glenn Research Center
---------------------------------------------