The tutorial is here: Simple Editor and its code is here: http://pastebin.com/x12f3DtN
My full code: http://pastebin.com/5sMDpC0X
I kind of modified the original tutorial by adding another menu to the menu bar, and added the ability to save file when we select Exit from the menu bar.
python main.py -v would show the widget really quickly, and then just went disappeared.
Without the Sizer portion, I can run my app.
Where is causing this problem. There is no error. I can run the tutorial’s full code without problem.
Thank you.
One evident mistake in the code lies here:
You have your buttons in
self.buttonslist, so you should addself.buttons[i]to the sizer.