Firstly, apologies to everyone for not sending this in the right format the
first time - I pressed send too early.
I had an app working well. It called an instance of wxFrame which itself
called an instance of wxPanel. On the wxFrame, I had a menubar with an
exit option (amongst others.) On the wxPanel, I had a number of buttons
that did things (created files as output etc.)I have now changed my app so that there is no menubar and I need to have a
button to close the wxFrame. This is because this app will now be called
from another app (non-Python) and so I want it to look like just another
dialog box. I can't seem to make a button on the wxPanel close the
wxFrame (seems sensible) so I moved everything into the wxFrame. While
this now works, it looks horrible as the background is a dark grey (and
doesn't really look like a dialog box, which was the point.)I have included links to simplified versions of the version 1 and version
2 code I am using. Any help greatly appreciated.
The first version which worked until I needed to close the window from a
button looked something like this http://www.poli.eclipse.co.uk/v1.txt
The second version which works but look awful, looks something like this
http://www.poli.eclipse.co.uk/v2.txt
Thanks
Darius