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

Use __new__ to generate Gtk classes. #4

Open
cjwelborn opened this issue Mar 23, 2020 · 0 comments
Open

Use __new__ to generate Gtk classes. #4

cjwelborn opened this issue Mar 23, 2020 · 0 comments

Comments

@cjwelborn
Copy link
Member

cjwelborn commented Mar 23, 2020

This will turn self.winMain accesses into self, and allow children to be accessed as 'self.childWin' instead of self.childWin.childWin. The builder needs to be involved in __new__, so it may be a little tricky to instantiate the main window in __new__, and then instantiate all children in __init__ (especially with the current code generation, and regular vs. dynamic init).

The idea came from this article.

More information is needed.

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