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

[Implement] Cursor waiting animation while script is executing. #1

Open
Aluerie opened this issue Nov 23, 2023 · 0 comments
Open

[Implement] Cursor waiting animation while script is executing. #1

Aluerie opened this issue Nov 23, 2023 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Aluerie
Copy link
Owner

Aluerie commented Nov 23, 2023

Idk, it just doesn't work. II don't know how to go around it. We tried some threading, but it messes other things too.

Well, get it to work.

self.master.config(cursor='watch')

def update_console_box(self):
# idk how to update the cursor - it just does not work
# self.master.master.config(cursor="watch")
the_prefix = f"\n{get_now_string()} | {self.name} | "
# notification about pressing the button
self.console_box.configure(state="normal")
self.console_box.insert("insert", f"{the_prefix} Starting")
self.console_box.configure(state="disabled")
self.console_box.update()
self.console_box.see("end")
connector = self.connector_cls(need_confirmation=True)
connector.start()
# self.master.master.config(cursor="arrow")
# ^this should be in body of ConfirmationBox as self.master.config(cursor="arrow")
# call the script and print the result
self.console_box.configure(state="normal")
self.console_box.insert("insert", f"{the_prefix} {connector.console_text}")
self.console_box.configure(state="disabled")
self.console_box.see("end")

@Aluerie Aluerie added enhancement New feature or request help wanted Extra attention is needed labels Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Development

No branches or pull requests

1 participant