[ wxwindows-Bugs-1671249 ] wxStdDialogButtonSizer Realize Crash

SourceForge.net noreply at sourceforge.net
Wed Feb 28 13:23:33 PST 2007


Bugs item #1671249, was opened at 2007-02-28 16:23
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1671249&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: wxMac specific
Group: Platform specific
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Kevin Watters (kevinwatters)
Assigned to: Stefan Csomor (csomor)
Summary: wxStdDialogButtonSizer Realize Crash

Initial Comment:
The following code crashes in Python 2.5 / wxPython 2.8 on a Macbook with an EXC_BAD_ACCESS in wxStdDialogButtonSizer::Realize().

import wx

if __name__ == '__main__':
    app = wx.PySimpleApp()

    d = wx.Dialog(None)
    t = wx.TextCtrl(d)

    s = wx.StdDialogButtonSizer()
    s.AddButton(wx.Button(d, wx.ID_SAVE, '&Save'))
    s.AddButton(wx.Button(d, wx.ID_CANCEL, '&Cancel'))
    s.Realize()

    s2 = wx.BoxSizer(orient=wx.VERTICAL)
    s2.AddWindow(t)
    s2.AddWindow(s)

    d.SetSizerAndFit(s2)
    d.ShowModal()
    d.Destroy()
    app.MainLoop()

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1671249&group_id=9863




More information about the wx-dev mailing list