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

Change init methods for some classes #46

Open
mretegan opened this issue Mar 4, 2021 · 0 comments
Open

Change init methods for some classes #46

mretegan opened this issue Mar 4, 2021 · 0 comments

Comments

@mretegan
Copy link
Owner

mretegan commented Mar 4, 2021

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.

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