Skip to content

object has no attribute 'refresh' #2330

Answered by rmartin16
DdosTheCoder asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks.

In main(), you're returning a toga.App with startup=Picture but that's probably not going to work since invoking the object from startup needs to return a widget.

Try this instead:

def main():
    return Picture()

You'll also want to consider the use of main_box in return_to_main_window() since it won't be available in that function.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@DdosTheCoder
Comment options

@rmartin16
Comment options

Answer selected by DdosTheCoder
@DdosTheCoder
Comment options

@DdosTheCoder
Comment options

@rmartin16
Comment options

@DdosTheCoder
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants