object has no attribute 'refresh' #2330
-
I'm new to programming so sorry if this is actually a very easy and stupid question. I'm trying to develop an Android training app for my friend with, because it's android, I can't create new windows, so I'm using I tried:
and
but it doesn't work, I also looked in discussions and asked ChatGPT but nothing seems to work, so I came here. This is a part of the code where I think the problem is. If you need I can send a full code here.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Please include what it is you are trying to do; it's difficult to provide advice if you don't state your relevant goals. As far as the error is concerned, are you trying to call If you are able to provide a minimal app that reproduces the error (that only includes the code necessary to create your error), that can help since we'll have a straightforward example to commonly work from. Also, please include the full error traceback as well; this is simplest if you just upload the log created by Briefcase. You can force this log creation with |
Beta Was this translation helpful? Give feedback.
Thanks.
In
main()
, you're returning atoga.App
withstartup=Picture
but that's probably not going to work since invoking the object fromstartup
needs to return a widget.Try this instead:
You'll also want to consider the use of
main_box
inreturn_to_main_window()
since it won't be available in that function.