Skip to content

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

@Aluerie

Description

@Aluerie

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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions