Skip to content

Refactor some of the parameters and make code neater #3

@ProfessorAtomicManiac

Description

@ProfessorAtomicManiac

In the Wrapper class, to create some buttons and whatnot you need like 8 parameters which are super annoying. Make sure that those parameters are actually being used and make a class to store all those parameters so that instead of four parameters, just pass an object containing those four parameters.

Also, refactor the code relating to parameters containing the "options", specifically Button and TextButton class because that is being replaced by the self.can_press instance variable, which is more general and makes the "options" parameter redundant.

Put any "magic numbers" such as hex color values in a class where they are stored and use them from now on.
Look over the Window class to see whether some variables can be dropped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions