Turtle and QPython - turtle-graphics

I have been playing with basic Python(2.3) on my PC (which has Windows 8 OS) for awhile, but my PC broke and I now just have my Android Kitkat tablet.
I downloaded Qpython and have been using that, but when I try to import and start turtle - in the way I have always done on my PC, it just runs:
ImportError : No module named turtle
Is there another way to run turtle on QPython? Or is turtle not able to run on Android?

Turtle works with tkinter but tkinter isn't working on mobile device. You may use kivy to do so and kivy is cross-plateform for your android and also your PC. I've never use it but I'm going to get a try. I think it may solve your problem.

Related

The love2d game.exe is not sharp in windows. How to make the game sharp(for pixel game)?

In windows
In linux
I am a linux user so i was making the game in linux. While developing the game when i compiled the game, it was sharp. For sharping i have used this code love.graphics.setDefaultFilter('nearest', 'nearest').
After completing the game i have made it executable for windows in both 32 and 64 bit. On running the .exe file in windows, it is not as sharp as it is showing in linux. The game works fine but, this small detail is bugging my mind. Any suggessions?
Use a conf.lua and play around with the t.window.msaa option.

As a beginner using Kivy 2.0 what steps do i take to compile my project(app) into play store

Hello so I have been learning python and kivy for a year now and have finished coding my first app. It is a language learning app coded using the kivy framework.
I have been reading alot and watching tutorials but I haven't gotten the best response on what I need to do or what steps I post my app on playstore. Apparently buildozer doesn't work on windows.
As of now I have been using Kivy Launcher to test my apps.
For clarity my question is. Where do I start if I want to take my app (coded in Kivy) to playstore?
I am using Kivy 2.0 and python 3.9.1
First of all, you have to use buildozer to create your .apk file. Apparently buildozer doesn't work on windows so you have to use a virtual machine to do so. After running a virtual machine (ubuntu) you have to install buildozer and all other requirements. You can check the details on this page.
It's a long process and you will get a lot of errors while doing so. You can check some youtube tutorials like this (you won't need any server just use your virtual machine) or this. You have to carefully provide requirements in buildozer.spec file. Your app will crash a lot of times. After a lot of efforts, you will finally be able to pack your first apk. Then you can do the things to publish your app on play store.

VideoCapture.open(0) won't recognize pi cam

I have been working with my Raspberry Pi 2B for a while now. Testing the Pi cam using raspistill works great but trying to use OpenCV functions such as VideoCapture.open(); won't work. trying the same command with a USB camera works just fine. I tried different indexes as inputs but nothing works for the pi cam. What am I missing here?
sudo modprobe bcm2835-v4l2
will "enable" the camera for opencv automatically.
make sure you have the camera enabled from the raspberry config, either gui or raspi-config. the above loads the necessary drivers to handle everything automatically, i.e. loads the appropriate interfaces (v4l2 drivers) for the raspberry camera.
works out of the box on raspbian jessie. other releases might include the drivers by default, but the link below contains info on compiling the drivers in your worst case. so you should be able to get this to work with pidora as well.
more info: https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=62364
I assume your question is about the C++ API, not the python one? As far as I understand the raspberry pi camera is not a usb camera and as such should be approached differently. For python there is is picamera package which works like a charm (with opencv). I never used the C++ interface but a quick google leads to this

Getting monitor output during bootup

I'm in an unusual spot. The built in screen on the laptop I'm using right now is broken so bad I can barely see anything besides random flickering lights on it. Because of that, I got and plugged in a monitor to my laptop. This moniter works fine once Windows 7 has already loaded.
The issue is: I'm trying to open the BIOS/boot menu to live boot off of my USB, but I can't see anything. How do I make it so that I get visual output on my monitor early enough to open the BIOS/boot menu?
If it's a Dell laptop, try FN&F1 or F1
Dell Forum

webcam access using opencv with processing in an applet or application

I made a small sketch with processing using opencv to face detect and track. But when I export as an application and start it nothing happens, same as an applet. First I exported the applet and thought this must be a security issue, and struggled with some hack for processing to sign your java applet.
http://processing.org/hacks/hacks:signapplet
With no luck I thought I would atleast be able to run it as an application but no success.
Anyone know what to do?
If you're on OSX 10.6 there is a known bug with the quicktime camera stuff not working in 64-bit mode. Make sure both your install of processing and the exported application are set to run in 32-bit mode.
Right click -> get info -> Open in 32-bit mode

Resources