Well, a runnable sample is something completely different: it’s a minimal sample that other people can run and which demonstrates the problem.
I doubt that anyone wants to make your code running on his/her machine with all the dependencies.
I think this code does roughly what you want:
wxglade_out.py (1.4 KB)