[wxPython-dev] 20060712 test build uploaded
Greg Hazel
gah at thalassocracy.org
Sat Jul 22 17:16:28 PDT 2006
I ran my app (working on wx 2.6.2.3) against the 20060712 build, and pretty
quickly got an access violation in wxbase270uh_vc.dll. It seems to be
related to the wxLog stuff. Here's a small reproduction case, I hope no one
minds the paste:
import wx
class LogProxy(wx.PyLog):
def __init__(self, log):
wx.PyLog.__init__(self)
self.log = log
def DoLog(self, level, msg, timestamp):
# throw an event to do the logging, because logging from inside the
logging handler deadlocks on GTK
wx.CallAfter(self._do_log, level, msg, timestamp)
def _do_log(self, level, msg, timestamp):
wx.Log_SetActiveTarget(self.log)
wx.LogGeneric(level, '[5.0] %s' % msg) # <== CRASH HERE
wx.Log_SetActiveTarget(self)
class App(wx.App):
def OnInit(self):
f = wx.Frame(None, id=wx.ID_ANY)
log = wx.LogWindow(f, "the log", False)
wx.Log_SetActiveTarget(LogProxy(log))
wx.LogWarning("fdsjfds!")
return True
App(0).MainLoop()
-Greg
----- Original Message -----
From: "Robin Dunn" <robin at alldunn.com>
To: <wxPython-dev at lists.wxwidgets.org>
Sent: Thursday, July 13, 2006 11:02 AM
Subject: Re: [wxPython-dev] 20060712 test build uploaded
> Werner F. Bruhin wrote:
>> Hi Robin,
>>
>> R'bot wrote:
>>
>>> Hi,
>>>
>>> A new test build of wxPython has been uploaded to starship. Version:
>>> 2.7.0.0pre.20060712
>>> URL:
>>> http://starship.python.net/crew/robind/wxPython/daily/20060712
>>> Changes:
>>> http://starship.python.net/crew/robind/wxPython/daily/20060712/CHANGES.html
>>>
>>> Have fun!
>>> R'bot
>>>
>> I am having a little bit of fun!
>>
>> Installed it on Python 2.5b2 and Windows XP pro.
>>
>> In the demo I found some little issues.
>>
>> *Picker controls*
>> If I click on the wx.ColorPickerCtrl and change the color by clicking on
>> a shade on the right side, the RGB values change but not the selected
>> color. I have to select first a color on the left and then within the
>> "shades area" to make it work.
>
> Hmm... I can't duplicate this. It works for me to just pick pick a color
> in the gradient area on the right, adjust the intensity slider on the far
> right, and then click Ok
>
>>
>> *RichText control*
>> I can't change the font color, all the other things like bold, italic,
>> font style work, but selecting a text, clicking on the font button (on
>> the toolbar) and selecting any color and pressing o.k. does NOT change
>> the color, however if I change at the same time e.g. font size the size
>> changes but not the color.
>
> I'll check into this. It may be something that I missed when porting the
> sample from C++.
>
>
>>
>> *ActiveXPdfWindow*
>> Crashes when opening a PDF file (Adobe 7.0.5)
>
> Yes, this is the same old problem with Adobe's new ActiveX control that
> nobody has been able to solve yet. I suppose I should just take this
> module out of the demo, or else show it by embedding in an IE window
> instead, which does work. If somebody has time to whip up a patch for
> this I would appreciate it.
>
>
>>
>> *Visual things in the demo*
>> - with the ScrolledPanel demo a black squart shows for a moment
>
> This was present in 2.6 as well, just not as noticeably visible. It comes
> from creating the panel for the newly selected demo, which shows up at its
> default size and position, and then adding it to the notebook where it
> gets sized, positioned, and painted appropriately. It is black initially
> now because of some low level changes done a while back for how themed
> windows are created (or something like that.) We could work around that
> by creating the panels hidden to begin with and then showing them after
> they've been added to the notebook, but I haven't had the gumption needed
> to make the change to all of the demo modules.
>
>> - with the SplitTree a large black rectangle shows for some time - very
>> very very slow in loading
>
> Hmm, something is blocking some event handler from returning to the main
> loop... Very weird. I'll take a look at it.
>
>>
>> *Exception when I tried to run Boa 0.4.4*
>> Traceback (most recent call last):
>> File "boa.py", line 256, in <module>
>> import Preferences, Utils
>> File "C:\Python25\Lib\site-packages\boa\Preferences.py", line 137, in
>> <module>
>>
>> execfile(file)
>> File "C:\Documents and
>> Settings\wbruhin\.boa-constructor\prefs.plug-ins.rc.py"
>> , line 11, in <module>
>> from wxPython.wx import *
>> File
>> "C:\Python25\Lib\site-packages\wx-2.7.0-msw-unicode\wxPython\__init__.py"
>> , line 15, in <module>
>> import _wx
>> File
>> "C:\Python25\Lib\site-packages\wx-2.7.0-msw-unicode\wxPython\_wx.py", lin
>> e 3, in <module>
>> from _core import *
>> File
>> "C:\Python25\Lib\site-packages\wx-2.7.0-msw-unicode\wxPython\_core.py", l
>> ine 877, in <module>
>> wxEVT_POWER = wx._core.wxEVT_POWER
>> AttributeError: 'module' object has no attribute 'wxEVT_POWER'*
>> *
>
> Did you also see a DeprecationWarning about the wxPython.wx namespace not
> being automatically generated or maintained any longer? I can fix this
> particular bug, but the old wxPython package really needs to die.
>
>
> --
> Robin Dunn
> Software Craftsman
> http://wxPython.org Java give you jitters? Relax with wxPython!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-dev-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-dev-help at lists.wxwidgets.org
>
>
More information about the wxpython-dev
mailing list