Chapter 16 // Exercise 1
Make a My_window that's a bit like Simple_window except that it has two buttons, next and quit.
Github: https://github.com/l-paz91/principles-practice/tree/master/Chapter%2016/Exercise%201
I could've easily just inherited Simple_window and added another button to it but I wanted to practice making a window so created it in a new file.
My_window doesn't work exactly like Simple_window and needs return gui_main() to work properly (unlike Simple_window) but I like it.
The green square appears after next is pressed.
My_window doesn't work exactly like Simple_window and needs return gui_main() to work properly (unlike Simple_window) but I like it.
The green square appears after next is pressed.
No comments:
Post a Comment