Re: Trellis WXEventLoop patch

Grant Baillie <grant-6zGkXsw2EZWGJGYlWa3Ukdi2O/[email protected]>
Newsgroups gmane.comp.python.peak
Message-ID <[email protected]>
On 25 Jun, 2008, at 17:07, Phillip J. Eby wrote:

> At 02:36 AM 6/26/2008 +0300, Sergey Schetinin wrote:
>> You're right. Also it should have been wx.CallLater, not CallAfter.  
>> Here's a better example:
>>
>> import wx
>> app = wx.PySimpleApp()
>> wx.CallLater(0.1, lambda:None)
>> f = wx.Frame(None)
>
> This doesn't do anything; it doesn't even run the app in a loop.   
> But at least it doesn't core dump, either.  :)

Heh ... I think it needs a

app.EventLoop()

after the last line. That gives me a

wx._core.PyAssertionError: C++ assertion "m_milli > 0" failed at ../ 
src/mac/carbon/timer.cpp(84) in Start(): invalid value for timer timeout

on the wx bundled with Mac OS X 10.5 (wx.__version__ == '2.8.4.0'). On  
the version we use in Chandler ('2.8.7.1-r205-1') no such assertion.

--Grant
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.