Thanks for pointing me in the right direction. From what I’ve read it’s not possible unless omz took steps to piece them together in Pythonista. I appreciate the help!
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.
Best posts made by AceNinjaFire
-
RE: [CLOSED] Is there a way to install tkinter/Kivy/pyQt on Pythonista?
-
RE: How to use ui.Webview.evaluate_javascript()?
Damn!!!
Thank you!! I have no experience with using the objc_util module at all😅, but I’ll have to look at it now. You helped me solve a problem I was having lol, I appreciate it.
Would you know of a good tutorial for using the module? I’ve looked at the doc before but it’s not an easy read.
-
RE: Keyboard script isn’t saving/writing files.
Btw thank you for pythonista, it was the one thing that actually got me started with programming and made me realize how much I love it. It’s been my hobby for the last 5 months overtaking my love for video games😂
Latest posts made by AceNinjaFire
-
RE: [CLOSED] Is there a way to install tkinter/Kivy/pyQt on Pythonista?
DANG NICE!! Thanks I appreciate it. Ima go check it out
-
RE: [CLOSED] Is there a way to install tkinter/Kivy/pyQt on Pythonista?
Thanks for pointing me in the right direction. From what I’ve read it’s not possible unless omz took steps to piece them together in Pythonista. I appreciate the help!
-
RE: [CLOSED] Is there a way to install tkinter/Kivy/pyQt on Pythonista?
I’ve just about learned everything in the ui module that comes Pythonista. Although the only thing giving me trouble is ui.TableView, otherwise I’ve just about got it down.
The only reason I want to install one of these modules is because it’s much easier to work with scripts/programs on Pythonista than my laptop.
-
[CLOSED] Is there a way to install tkinter/Kivy/pyQt on Pythonista?
I hope everyone is having a good day!
Hey all, I’ve been using Pythonista for a good while and wanted to know if it would be possible to install one of the modules above to Pythonista so I could practice using them? I remember omz mentioning that Pythonista is not a pure-python application. So I imagine something like these modules wouldn’t likely work in Pythonista. I appreciate any responses on the topic!!
-
RE: How to load an image into image view?
Ah thank you lol, I got as far as image_data = BytesIO(requests.get().content)
I never thought about using the Context Manager and putting the “.getvalue()” on the image_data. Lol I appreciate the help!
-
RE: How to load an image into image view?
Shiiiiit sorry lol I had not realized that anyone had replied. I knew I could do that from the beginning, I was just trying to go from jpeg/image object straight to ui.Image/Ui.ImageView.
I ended up just making a list from each requests.get().content and using that.
I was just trying to swim up river to see if I could do it I guess lol. -
RE: How to load an image into image view?
Nvm I think I figured it out, it has to be a bytes-like object. I just have to figure out how to get image.tobytes() to byte-like and not bytes
-
How to load an image into image view?
Been trying to get an idea of mine working. I made a script to download galleries, and I’m trying to set the image view after the image has been downloaded.
But for some reason what I did below doesn’t do anything. Could someone tell me what I’m doing wrong?import ui,requests,Image from io import BytesIO Image_url =“some image url” image_data = BytesIO(requests.get(image_url).content) image = Image.open(image_data) w,h = ui.get_screen_size() testview = ui.View() testview.frame = (0,0,w,h) Img_view = ui.ImageView() Img_view.frame() = testview.frame() testview.add_subview(img_view) testview.present() Img_view.image= ui.Image.from_data(image.tobytes())
-
RE: Making and calling packages in Pythonista?
I’ve gotten that far, but I was trying to shorten what I type even more. As I’ve read in some posts that you can format the init.py file in a way that will completely dump all of the functions of the files into init file. So I wouldn’t have to reference module1 at all and just type from mypackage import some_function.