Skip to content

how to poke into a library function to display its progress in GUI #5098

Closed Answered by nnako
nnako asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Toniolo-Marco . Sorry for the delay...

I tried to write down a "template" showing how it worked for me (necessary includes are missing and the function name of the library function and other things would have to be adjusted to your needs):

#
# application
#

class ExampleApp(App):




    #
    # compose the app GUI
    #

    def compose(self) -> ComposeResult:




        #
        # show progress bar
        #

        yield ProgressBar()




        #
        # show button
        #

        yield Button("button-label", id="button-id")




        #
        # show footer
        #

        yield Footer()




    @on(Button.Pressed, "#"+"button-id")
    @work(exclusive=True, thread=T…

Replies: 7 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@rodrigogiraoserrao
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@willmcgugan
Comment options

@nnako
Comment options

@Toniolo-Marco
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by nnako
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants