Hi,
i’ve encoutered this issue using wxPython 3.0.
I add a wxpython widget and when i init the frame i get the following error :
wx._core.PyAssertionError: C++ assertion “m_window” failed at …/src/gtk/dcclient.cpp(2043) in DoGetSize(): GetSize() doesn’t work without window
Have you a solutioon ?
Thanks in advance,
Antonio.
DavidW
December 7, 2015, 10:44pm
2
Nothing comes to mind given that description. Sample code would
help.
David
···
http://wiki.wxpython.org/MakingSampleApps
On 12/07/2015 03:58 PM, Antonio Volpe
wrote:
Hi,
i’ve encoutered this issue using wxPython 3.0.
I add a wxpython widget and when i __init__ the frame i get
the following error :
wx._core.PyAssertionError: C++ assertion "m_window"
failed at …/src/gtk/dcclient.cpp(2043) in DoGetSize():
GetSize() doesn’t work without window
Have you a solutioon ?
Thanks in advance,
Antonio.
–
You received this message because you are subscribed to the Google
Groups “wxPython-users” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to wxpython-users+unsubscribe@googlegroups.com .
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
I was working with richtext widget and I used this line to get the size :
size= self.m_richText.GetClientSize()
···
On Monday, December 7, 2015 at 5:41:05 PM UTC-5, Antonio Volpe wrote:
Hi,
i’ve encoutered this issue using wxPython 3.0.
I add a wxpython widget and when i init the frame i get the following error :
wx._core.PyAssertionError: C++ assertion “m_window” failed at …/src/gtk/dcclient.cpp(2043) in DoGetSize(): GetSize() doesn’t work without window
Have you a solutioon ?
Thanks in advance,
Antonio.
That's not enough code. The implication from the error is that you
tried to do this before the window had been created, or after the window
had been destroyed. A window doesn't get created immediately; the
constructor fires off some window messages that eventually set up the UI
structures. Where are you making that call?
···
a.m.n.alsubhi@gmail.com wrote:
I was working with richtext widget and I used this line to get the size :
size= self.m_richText.GetClientSize()
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.