Opened 6 years ago
Closed 4 years ago
#16765 closed defect (outdated)
wxPython GTK+3: crash when GetHandle() called on wx.Frame if unrealized
Reported by: | swt2c | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | wxPython | Version: | 3.0.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Patch: | yes |
Description
If GetHandle() is called on a wx.Frame before it has been realized, this results in a crash with the GTK+3 implementation. It seems that GDK_WINDOW_XID() is less friendly about dealing with null windows than GDK_WINDOW_XWINDOW(), so we should check the window beforehand.
Patch attached.
Attachments (1)
Change History (2)
Changed 6 years ago by swt2c
comment:1 Changed 4 years ago by robind
- Resolution set to outdated
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
Closing old Phoenix tickets...
If this is still an issue in wxPython 4.0.0a1 then please open a new issue (or PR) at the wxPython-Phoenix project page on Github: https://github.com/wxWidgets/Phoenix