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

Selection #14

Open
s0lst1ce opened this issue Oct 2, 2019 · 1 comment
Open

Selection #14

s0lst1ce opened this issue Oct 2, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@s0lst1ce
Copy link
Owner

s0lst1ce commented Oct 2, 2019

Some widgets (such as InputField) need to know if they are selected or not. That is to know if they are the last widget on which the user clicked. To implement this a context manager would have to be made.
This could be implemented using containers although they would need to communicate between themselves. One way to fix this would be to implement another module-wide variable like PIGUI_DISPATCHER.
Otherwise a master container which would only contain other containers could be made. However this may reduce performances and improve code complexity, which isn't pythonic.

@s0lst1ce s0lst1ce added the bug Something isn't working label Oct 2, 2019
@s0lst1ce s0lst1ce self-assigned this Oct 2, 2019
@s0lst1ce
Copy link
Owner Author

A global variable is currently being used. More extensive testing needs to be done before the efficiency of this method can be asserted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant