Segfault in Linux when adding to a Control

Hello list,

When I add any Window instance to a Control, it causes a segfault in
Linux but not in Windows. Here is some example code that tries to add
a StaticText to a TextCtrl

···

#-------------------------
import wx

class MyFrame( wx.Frame ):

    def __init__( self ):

        wx.Frame.__init__( self, None, -1, "Test" )

        self.text_ctrl = wx.TextCtrl(self,-1)
        self.static_text = wx.StaticText(self.text_ctrl,-1,'testing')

        self.Show()

app = wx.App(0)

MyFrame()

app.MainLoop()
#-------------------------

(I'm trying to make a fancy form thing that has labels inside the
TextCtrl but slightly out of the way so the user can still see what
they are typing)

I was just wondering if I'm doing something wrong or if this is a bug

Thanks

knascent wrote:

Hello list,

When I add any Window instance to a Control, it causes a segfault in
Linux but not in Windows. Here is some example code that tries to add
a StaticText to a TextCtrl

(I'm trying to make a fancy form thing that has labels inside the
TextCtrl but slightly out of the way so the user can still see what
they are typing)

I was just wondering if I'm doing something wrong or if this is a bug

The widgets on GTK simply can not support this kind of thing.

···

--
Robin Dunn
Software Craftsman