Very Newbie question

I just started in python/wx programming. wxglade is too unstable, so I
tried wxdesigner. It generates a good code, but I don't have figured
out how to make the Dialog that I create in it the content of the main
application frame.

there's a comment on the application code:

#insert main window here

but I tried with no success. wxglade generates a code that already
shows the content of my design in the main frame..

What I'm doing wrong?

I sent this message yesterday but it seems that it doesn't get to the
list, so sorry if it's a dup.

···

---------- Forwarded message ----------

I just started in python/wx programming. wxglade is too unstable, so I
tried wxdesigner. It generates a good code, but I don't have figured
out how to make the Dialog that I create in it the content of the main
application frame.

there's a comment on the application code:

#insert main window here

but I tried with no success. wxglade generates a code that already
shows the content of my design in the main frame..

What I'm doing wrong?

Jose de Paula Eufrasio Junior wrote:

I just started in python/wx programming. wxglade is too unstable, so I
tried wxdesigner. It generates a good code, but I don't have figured
out how to make the Dialog that I create in it the content of the main
application frame.

To do it by hand do something like this:

import wx
import designer_wdr

class MyFrame(wx.Frame):
     def __init__(self, parent, title):
         wx.Frame.__init__(self, parent, -1, title)
         p = wx.Panel(self)

         designer_wdr.MyDialogFunc(p)
         self.Fit()

app = wx.PySimpleApp()
frame = MyFrame(None, "Testing wxDesigner")
frame.Show()
app.MainLoop()

You can also add "Python Sources" in wxDesigner and use the tool bar in the editor window to add classes, event handlers, getters, etc. that wrap the designer generated dialogs.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Jose de Paula Eufrasio Junior wrote:

I sent this message yesterday but it seems that it doesn't get to the
list, so sorry if it's a dup.

http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?11:mss:31843:200409:dopdmhokioeobnceadoh

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!