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

Add the entered method to the UIScreen class #97

Open
poncovka opened this issue Apr 9, 2021 · 0 comments
Open

Add the entered method to the UIScreen class #97

poncovka opened this issue Apr 9, 2021 · 0 comments

Comments

@poncovka
Copy link
Contributor

poncovka commented Apr 9, 2021

The UI screen doesn't have a method that would be called every time a user enters the screen. It is possible to use a workaround with the setup method and the screen_ready property set to False when the screen is closed (see the example [0]), however it is not a very friendly solution. The new method would be useful for updating the initial configuration of the screen before it is shown to the user.

Also, I am not sure why the setup method is even supported. It seems to be too specific without any immediate benefit to the simpleline library. It feels like a leftover from anaconda.

[0] https://github.com/rhinstaller/python-simpleline/blob/master/examples/03_entry_counter/03_entry_counter.py#L65

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant