8000 Change init methods for some classes · Issue #46 · mretegan/crispy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Change init methods for some classes #46
Open
@mretegan

Description

@mretegan

The current way makes it tedious to instantiate certain classes. For example:

from crispy.gui.quanty.calculation import Element 
element = Element(value="Fe2+")

Make value the first keyword argument, so it doesn't need to be explicitly specified. Already these classes are heavy as they inherit from QObject, no need to make things more verbose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0