Skip to content

Use __new__ to generate Gtk classes. #4

@cjwelborn

Description

@cjwelborn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions