Thank you for your answer @JonB .
Okay, I was making some test and I can’t make it work. I tried:
- Duplicating de .h and changing its name to .o, then linking it to the .m (both of them .h and .o). But I have a dublicated symbol error. I got the same error linking the .o to the .h.
- Replacing the .h for a .o and linking it to the .m but I get the same link error.
- Making a .o for every undefined symbol of the error and linking it to the .m. I got the same error (I think I don’t remember, but it was an error)
What am I doing wrong? Where to link it? Thank you for your time by the way.
PD: I’m not compiling it in Xcode because I don’t a have a Mac, and if I could make this make file to work it will be awesome
Hi everyone, I’m trying to compile the Pythonista Template with Theos using a Makefile. When I’m making the package I always get this error:
Undefined symbols for architecture arm64: "_OBJC_CLASS_$_OMTextColorTheme", referenced from: objc-class-ref in PAAppViewController.m.417963fe.o "_OBJC_CLASS_$_PAEExtensionContext", referenced from: objc-class-ref in PAAppDelegate.m.417963fe.o "_OBJC_CLASS_$_PAStandaloneOutputView", referenced from: objc-class-ref in PAAppViewController.m.417963fe.o "_OBJC_CLASS_$_PythonInterpreter", referenced from: objc-class-ref in PAAppDelegate.m.417963fe.o ld: symbol(s) not found for architecture arm64 clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
I don’t know almost nothing of obj-c but i can assume there’s an error when importing this objects from the .h file (though the header has the #import somename.h) since all that objects are defined in their respective somename.h
Si how can I import the object or fix that undefined symbol? Or it is something about the arm64 and armv7 (I don’t think so)?
I was thinking and maybe for getting out of the subview and running the other one, idk, but I thing the custom view with the subviews act like an independent ui.view()
Maybe use something like:
Am I right? (I tried it didn’t work)
So, I’m trying to access a subview element located in a custom view made in a .pyui
I saw another post where they suggested to use...
a = sender.superview['view1']['subview']
And it worked, I used it for assigning an image to the imageview and changing the alpha of the whole custom view when a button is tapped:
def example(sender): def animation1(): #Here I “call” the subview element in the custom view d = sender.superview['view1']['image'] z = ui.Image.named('image01.PNG') d.image = z #Here I access only to the custom view view1 = sender.superview['view1'] view1.alpha = 1 ui.animate(animation1, duration=2)
Later in the same script I want to acces a Label and a button in another custom view and then change the Text and title when the button is tapped. I used the same structure of the first example but it still doesn’t work:
def example(sender): def animation1(): d = sender.superview['view2']['bFac'] d.title = 'Example Title' bla bla, more text ui.animate(animation1,duration=2)
When I run the program I get the error TypeError: 'NoneType' object is not subscriptable
I don’t know if I’m making understand my self Xd, I’m new in Pythonista, hopping someone can answer me.