[wxPython-dev] 2.8.4.0 release
Kevin Ollivier
kevino at theolliviers.com
Fri Apr 27 15:46:36 PDT 2007
Hi Roman,
On Apr 27, 2007, at 1:44 PM, Roman Rolinsky wrote:
> On Fri, 2007-04-27 at 12:18 -0700, Robin Dunn wrote:
>> Robin Dunn wrote:
>> * On Windows when trying to do a DnD I get this:
>>
>> Traceback (most recent call last):
>> File "c:\PROJECTS\wx2.8\wxPython\wx\tools\XRCed\tools.py", line
>> 171,
>> in OnRightClick
>> dragSource = wx.DropSource(self, icon)
>> File "c:\PROJECTS\wx2.8\wxPython\wx\_misc.py", line 5293, in
>> __init__
>> _misc_.DropSource_swiginit(self,_misc_.new_DropSource(*args,
>> **kwargs))
>> TypeError: in method 'new_DropSource', expected argument 2 of type
>> 'wxCursor const &'
>>
>
> It seems wxWIN does not like to make Cursor from Icon, while wxGTK
> does
> not like Images. Mac requires an Icon argument too, but drag-and-drop
> does not seem to work (BTW I did get a MacBook and installed wxPython
> 2.8.3 binary distribution so now can test things there. It seems some
> basic controls are not fully implemented with native objects for
> example
> ComboBox, and SpinCtrl I think too. Is this due to some compatibility
> with previous versions of MacOS?
SpinCtrl does use native objects, but there's no native combination
of SpinButton and TextCtrl, so we combine them in wx. There are a
couple other cases where we do something like this (e.g. wxSlider's
labels, as the native control has no labels concept).
As for ComboBox, it's a long story, but the gist of it is that Carbon
(Apple's C++ bindings) did not have a native ComboBox control until
Panther or Tiger (can't remember which), and when they finally did
release it, we found out that it didn't fire an event for when the
selection changed, making it unusable in our case. ;-/ (There is an
implementation in wx sources, though.) I'm not sure if that's been
fixed yet, but I do know Apple said it was going to be fixed, so at
some point I plan to look into it again.
In general, Carbon works well, but Apple does give more attention to
Cocoa than Carbon, so there are a few rough spots that we've had to
deal with. Of course, the reason we use Carbon is that there was a
wxMac port for older Mac versions that was largely reusable for OS X.
> Overall it's a very nice machine and
> can run Linux in Parallels which is great).
Glad to hear you like it! :-)
BTW, thanks for the updates on XRCEd! I'm really looking forward to
the custom control stuff (I'd like to add support for SizedControls)
and also the IDE embedding stuff. :-)
Regards,
Kevin
> Regards,
>
> Roman
>
>> --
>> 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
>
>
> ---------------------------------------------------------------------
> 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