Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Why Error? Help noob Please
-
Image https://www.dropbox.com/s/bs6mk5n2u3at6yr/Фото 12.10.14%2C 10 51 09.png?dl=0
import ui from ui import * def raw(sender): bon = sender.superview['view1'] bon.present('sheet', hide_title_bar=True ) def goal(sender): bon = sender.superview['view1'] bon.close() #error ui.load_view('point').present('sheet', hide_title_bar=True )
PS Sory for my Eanglish
-
You can translate the error message that you are getting as:
There no such thing as sender.superview['view1']
.Without seeing your .pyui file, it is difficult to say if this should work, but you can try:
def goal(sender): bon = sender.superview # ['view1'] bon.close()
-
ccc, thank you, it's work