Hi,
In a wx.lib.customtreectrl, I am trying to load more then 7MB data in the
custom tree control. It is unable to load and also it hangs the system.
Is there any size limitation of wx.lib.customtreectrl?
Thanks,
Gopal
···
-----Original Message-----
From: Andrea Gavana [mailto:andrea.gavana@gmail.com]
Sent: Friday, December 14, 2007 12:58 AM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] PyAssertionError, while adding controls to
wx.ScrolledWindow
On Dec 13, 2007 10:58 AM, gopal mishra wrote:
In a wx.Dialog, I've added a wx.ScrolledWindow to the dialog and
dynamically
adding more then 1250 wx.StaticText controls in row wise to scrolled
window.
1250??? Wow, why do you need so many controls in a scrolled window?
I am getting the following error message:
Traceback (most recent call last):
<snip>
<snap>
PyAssertionError: C++ assertion "wxAssertFailure" failed at
..\..\src\msw\control.cpp(159) in wxControl::MSWCreateControl():
CreateWindowEx("STATIC", flags=52000100, ex=00000000) failed
Yes, Windows is going drunk because you're probably using too many GDI
resources to create more than 1000 widgets... If you need only static
texts, I'd suggest you to draw your text in the scrolled window using
a custom OnPaint method handling the wx.EVT_PAINT event for it. It's
much easier and far less resource-demanding than your current
approach.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org