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

About widget addition to container #12

Closed
s0lst1ce opened this issue Sep 14, 2019 · 2 comments
Closed

About widget addition to container #12

s0lst1ce opened this issue Sep 14, 2019 · 2 comments
Labels
help wanted Extra attention is needed
Milestone

Comments

@s0lst1ce
Copy link
Owner

Although the possibility to add a widget to a container using the add method a simpler option should be provided.
It would be more practical to have the addition done automatically.
However I am not yet sure on how to do this. What are your thoughts?

@s0lst1ce s0lst1ce added the help wanted Extra attention is needed label Sep 14, 2019
@s0lst1ce s0lst1ce added this to the Basic widgets milestone Sep 14, 2019
@s0lst1ce
Copy link
Owner Author

s0lst1ce commented Sep 15, 2019

As @kadir014 proposed, the container and the coordinates will be passed when creating the widget.
This means that instead of having to write

c = Container(...)
l = Label(...)
c.add(l, x, y)

one will only have to write this:

c = Container(...)
l = Label(c, x, y, ...)

If anyone has other propositions I'm open to them.

@s0lst1ce s0lst1ce pinned this issue Sep 15, 2019
@s0lst1ce
Copy link
Owner Author

This was fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant