Re: Phoenix - agw.aui on Linux Mint17

Robin Dunn <[email protected]>
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>
Werner wrote:
> Hi Robin,
>
> When running the demo for agw.aui I get an exception on Mint17
> "ScreenToClient failed on unrealized Window" with Python 3.4 and Phoenix
> 3.0.3.dev1687.

On X-windows systems "unrealized" means that the window hasn't been sent 
over to the X server yet, and so it only exists in the application at 
that time.  When a window has not been realized yet anything you try to 
do to it that requires the X server will give you an error like this.

The things to watch out for in the code to help narrow down the source 
of the issue would be anything that might happen before the window or 
its top-level parent is shown.  You can try moving things like that to a 
handler for the EVT_WINDOW_CREATE event, like what is done in the 
ShapedWindow sample in the demo.  Just be sure to call that handler 
directly on the other platforms because on Windows at least that event 
is typically sent before the window constructor returns.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org

-- 
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.