Yes, although you'll probably have to set the drop target on the inner
window instead of the whole widget. You can use tlc.GetMainWindow() to
get that inner window.
--
Robin Dunn
Software Craftsman
http://wxPython.org
2009/9/30 thomas:
>
> Hi Robin,
>
> I am getting the following error on drag and drop
>
> tried both gizmos.TreeListCtrl And HyperTreeList
>
>>>> import wx.lib.agw.hypertreelist as HTL
>>>> type(HTL)
> <type 'module'>
>>>> HTL.__version__
> '0.7'
>
> 2009-10-01 11:10:12
> Traceback (most recent call last):
> File "E:\Thomas\development\python\DocsBoxWidget-v5\gui
> \mainProjectFrame.py", line 97, in OnDragOver
> item, flags = self.treeCtrl.HitTest((x,y))
> File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw
> \hypertreelist.py", line 3282, in delegate
> return getattr(self._main_win, method)(*args, **kwargs)
> File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw
> \hypertreelist.py", line 2280, in HitTest
> if point.x <0:
> AttributeError: 'tuple' object has no attribute 'x'
This error has now been fixed in SVN.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
http://thedoomedcity.blogspot.com/
2009/10/4 thomas:
>
> Hi Andrea,
>
> Thanks a lot for that. Can you also advise me on how i can proceed
> with updating my code to have the fix installed.
You should grab the code from SVN, which is currently down as Robin is
working on the servers. I'll send you the link once SVN comes up
again.
> Is the fix applicable to gizmos treelist control as well.
No, just to HyperTreeList.
2009/10/4 Andrea Gavana:
> Hi Thomas,
>
> 2009/10/4 thomas:
>>
>> Hi Andrea,
>>
>> Thanks a lot for that. Can you also advise me on how i can proceed
>> with updating my code to have the fix installed.
>
> You should grab the code from SVN, which is currently down as Robin is
> working on the servers. I'll send you the link once SVN comes up
> again.
You can view the code here:
You can either copy the code and paste it over your copy of
wx.lib.agw.hypertreelist or use an SVN client to grab the whole AGW
library with this address:
http://svn.wxwidgets.org/svn/wx/wxPython/3rdParty/AGW/