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..
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..
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)
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!