Phoenix - agw.CustomTreeControl

Hi Andrea.

If I push the down key permanently in CustomTreeControl in ‘phoenix’ version, I get the following error message:

Traceback (most recent call last):

File “D:\Python27\lib\site-packages\wx-2.9.5-81-msw\wx\lib\agw\customtreectrl.py”, line 7308, in OnKeyDown

self.DoSelectItem(next, unselect_others, extended_select, from_key=True)

File “D:\Python27\lib\site-packages\wx-2.9.5-81-msw\wx\lib\agw\customtreectrl.py”, line 5744, in DoSelectItem

self.EnsureVisible(item)

File “D:\Python27\lib\site-packages\wx-2.9.5-81-msw\wx\lib\agw\customtreectrl.py”, line 5848, in EnsureVisible

self.ScrollTo(item)

File “D:\Python27\lib\site-packages\wx-2.9.5-81-msw\wx\lib\agw\customtreectrl.py”, line 5868, in ScrollTo

wx.SafeYield()

wx._core.wxAssertionError: C++ assertion “Assert failure” failed at …\src\common\evtloopcmn.cpp(75) in wxEventLoopBase::Yield(): wxYield called recursively

In ‘classic’ it is not.

How can I avoid this ?

XP32 SP3, Python 2.7.3

Thx, woss

CTCSample.py (1.85 KB)

Hi,

···

On 5 April 2013 20:55, woss wrote:

Hi Andrea.

If I push the down key permanently in CustomTreeControl in ‘phoenix’ version, I get the following error message:

Traceback (most recent call last):

File “D:\Python27\lib\site-packages\wx-2.9.5-81-msw\wx\lib\agw\customtreectrl.py”, line 7308, in OnKeyDown

self.DoSelectItem(next, unselect_others, extended_select, from_key=True)

File “D:\Python27\lib\site-packages\wx-2.9.5-81-msw\wx\lib\agw\customtreectrl.py”, line 5744, in DoSelectItem

self.EnsureVisible(item)

File “D:\Python27\lib\site-packages\wx-2.9.5-81-msw\wx\lib\agw\customtreectrl.py”, line 5848, in EnsureVisible

self.ScrollTo(item)

File “D:\Python27\lib\site-packages\wx-2.9.5-81-msw\wx\lib\agw\customtreectrl.py”, line 5868, in ScrollTo

wx.SafeYield()

wx._core.wxAssertionError: C++ assertion “Assert failure” failed at …..\src\common\evtloopcmn.cpp(75) in wxEventLoopBase::Yield(): wxYield called recursively

In ‘classic’ it is not.

How can I avoid this ?

Uhm, does anything change if you replace wx.SafeYield with wx.YieldIfNeeded? If it does, then I’ll push through a commit in SVN.


Andrea.

“Imagination Is The Only Weapon In The War Against Reality.”
http://www.infinity77.net

-------------------------------------------------------------

def ask_mailing_list_support(email):

if mention_platform_and_version() and include_sample_app():
    send_message(email)
else:

    install_malware()
    erase_hard_drives()

-------------------------------------------------------------

  1. április 5., péntek 21:49:32 UTC+2 időpontban Infinity77 a következőt írta:

Hi,

Hi Andrea.

If I push the down key permanently in CustomTreeControl in ‘phoenix’ version, I get the following error message:

Traceback (most recent call last):

File “D:\Python27\lib\site-packages\wx-2.9.5-81-msw\wx\lib\agw\customtreectrl.py”, line 7308, in OnKeyDown

self.DoSelectItem(next, unselect_others, extended_select, from_key=True)

File “D:\Python27\lib\site-packages\wx-2.9.5-81-msw\wx\lib\agw\customtreectrl.py”, line 5744, in DoSelectItem

self.EnsureVisible(item)

File “D:\Python27\lib\site-packages\wx-2.9.5-81-msw\wx\lib\agw\customtreectrl.py”, line 5848, in EnsureVisible

self.ScrollTo(item)

File “D:\Python27\lib\site-packages\wx-2.9.5-81-msw\wx\lib\agw\customtreectrl.py”, line 5868, in ScrollTo

wx.SafeYield()

wx._core.wxAssertionError: C++ assertion “Assert failure” failed at …..\src\common\evtloopcmn.cpp(75) in wxEventLoopBase::Yield(): wxYield called recursively

In ‘classic’ it is not.

How can I avoid this ?

Uhm, does anything change if you replace wx.SafeYield with wx.YieldIfNeeded? If it does, then I’ll push through a commit in SVN.


Andrea.

“Imagination Is The Only Weapon In The War Against Reality.”
http://www.infinity77.net

-------------------------------------------------------------

def ask_mailing_list_support(email):

if mention_platform_and_version() and include_sample_app():
    send_message(email)
else:

    install_malware()
    erase_hard_drives()

-------------------------------------------------------------

The problem is same.

woss

···

On 5 April 2013 20:55, woss wrote: