Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restructure as MVC #21

Open
stuaxo opened this issue Jun 5, 2019 · 0 comments
Open

Restructure as MVC #21

stuaxo opened this issue Jun 5, 2019 · 0 comments

Comments

@stuaxo
Copy link
Contributor

stuaxo commented Jun 5, 2019

This really needs some structure imposed on it, may as well go with MVC in the absence of other ideas.

See the end of this issue for references (there aren't too many when it comes to Gtk3 + MVC)

e.g.

preferences
    model.py
    controller.py
    view.py
example_menu_uimanager
    model.py
    controller.py
    view.py
example_menu_gmenu
    model.py
    controller.py
    view.py

Example detail for example_menu_uimanager:

XML for the UI would go in model
Event handlers for the UI go into controller
View builds the actual menu.

References:

[1] https://www.reddit.com/r/learnpython/comments/54wv97/learning_mvc_in_python_gtk3/

[2] https://github.com/wesleywerner/mvc-game-design
(referenced from 2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant