[wxpython-users] Re: Does wxUpdateUIEvent.SetUpdateInterval() work?

Gre7g Luterman gre7g.luterman at gmail.com
Thu May 1 15:38:11 PDT 2008


I've reposted this question to the wxWidgets community and they mentioned
that SetUpdateInterval will have an effect *ONLY* if both of the following
have been set to a true value when wxPython was compiled: wxUSE_STOPWATCH
and wxUSE_LONGLONG

So I downloaded the wxPython source and I tried to slog my way through it.
I'm no expert at compiling wxPython, but looking at include\wx\msw\setup0.h,
it looks like the following are the defaults:

320: // Recommended setting: 1
321: #define wxUSE_LONGLONG      1

386: // Recommended setting: 1 (needed by wxSocket)
387: #define wxUSE_STOPWATCH     1

It looks like this is the default and so I would assume the binary version I
downloaded has them turned on.  Can anyone suggest why this might not be or
whatever else might be contributing to this problem?  Would any of these
recommended settings have changed since 2.8.4.0?

I'd love to have some input from anyone in the know.

BTW, here's a link to the wxWidgets thread:
http://wxforum.shadonet.com/viewtopic.php?p=3D82993

TIA,
Gre7g

On 4/30/08, Gre7g Luterman <gre7g.luterman at gmail.com> wrote:
>
> I tried setting wxUpdateUIEvent.SetUpdateInterval() to 500
> (GetUpdateInterval confirms it was set), but a print statement in my
> OnUpdateUI event handler is spitting out text at top-speed instead of two
> lines a second.
>
> What gives?
>
> I'm running Python 2.4.3 on Windows XP with wxPython 2.8.4.0.
>
> Gre7g
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200805=
01/aff93536/attachment.htm


More information about the wxpython-users mailing list