Kivy has an active irc channel, #kivy on freenode, or the mailing lists are often the best place for other types of discussion. This page has the details for each of these.
> Screen Manager seems to not like to handle anything except the base classes
It can handle anything at all, as long as you put it in a Screen. Your problem here is that you are adding the MainScreen class itself, rather than an instance. I answered more fully on stackoverflow.
I've always installed Kivy on Ubuntu using these instructions and PyCharm has always automatically picked it up; I never had to muck around with any settings. I've done it on multiple machines for both Python 2 and 3 with no hitches.
The touch object (documented here) includes opos
and related properties storing its original position, and pos
storing its current position, you can use this to get the direction of movement. Since you actually get the full vector change, you can also do stuff like ignore diagonals if you want.
> is it possible to define multiple objects?
Sure, take a look HERE.
"""
Instead of having to repeat the same values for every button, we can just use a template instead, like so:
<MyBigButt@Button>: text_size: self.size font_size: '25sp' markup: True
<MyWidget>: MyBigButt: text: "Hello world, watch this text wrap inside the button" MyBigButt: text: "Even absolute is relative to itself" MyBigButt: text: "repeating the same thing over and over in a comp = fail"
"""
The three buttons created above will have the same properties listed in <MyBigButt@Button>. If you wanted, you can add a <MySmallButt@Button> for a second size and use that the same way.
Another nice thing about Kivy is that it is relatively easy to create your own widgets if the provided ones don't work. Many people have done this and have made them available in the Kivy Garden.
Unforunately it seems like you'll have to do some hacking on Spyder to use it :/
https://github.com/spyder-ide/spyder/issues/5645
> Note: People have reported some limitations trying to develop Kivy apps with Spyder, so we recommend you to use another IDE. We specialize in scientific/engineering applications, and so we don't have the time to improve our interoperability with Kivy, sorry.
It's hard to tell the problem from that log, please set log_level to 2 and provide the output (use http://gist.github.com and give us the link, it won't fit in a reddit comment)
> What's the difference between android and android_new?
'android_new' is a complete rewrite of the original toolchain for building APKs. You should only use 'android' if you have a very specific reason (which you probably don't, when starting a new project, but some recipies may not be ported to the new toolchain yet).
Experienced Kivy designers might be hard to come by as its not that popular of a framework. If you cant find help I might be able to help. I'm probably better at backend and building libraries for kivy than I am at kivy UI but I have experience with releasing apps to the Apple app store and Google play and building new libraries and wrapping native mobile SDKs. Also check out kivymd https://play.google.com/store/apps/details?id=org.kivymd.kivymd or https://testflight.apple.com/join/VxqQHYJN for a material design theme which looks way better than default kivy.
The instructions for licensing Google Maps are here. If your app is popular and they impose a licensing fee, then OpenStreetMap might be the way to go.
That said, most anything can be reverse engineered. If you’re following Google’s official policies, then this is more of their problem than yours.
https://fonts.google.com/specimen/Luxurious+Roman?query=luxurious
There is a download option (which downloads a zip in which I could not find a ttf file) and there is also a link for using the font in html.
Am I supposed to download it using some other other way? "Download family" did not work out I guess.
> whenever I type one of these characters in text inside of a button (as an example) it returns an error.
What do you mean with "it returns an error"? It displays a square box instead of the character, or you get an actual crash of the application, or?
I would have to guess it's because of the font. See Roboto glyphs at google fonts - if it's not in this list, it won't work by default, you have to use a different font.
You can use fontsquirrel to find fonts by language compatibility:
I haven't tried building Android apps on Repl.it and I'm not sure it's possible there as the REPLs may not have enough storage space for installing all the required software and tools.
Right, that's what I was getting the impression of. Looks like for websites you can do an "only client" checkout which sounds really handy, but not specifically for mobile. Going to investigate if there's something similar that would be possible on mobile either in-app or through opening some url and have it done on the Stripe website itself (maybe there's another payment provider that can do that?). Would love to not have to worry about spinning up a server but that's probably the way I'll end up going. Will try to keep you updated - nice work!
If all updates were applied to Windows 7 the system should be set up. You could try to update the dependencies of kivy and see if that changes anything. If not, then try the nightly versions of the dependencies wheel files.
I guess it boils down to sdl2
rendering the text. I can test it on my system to see if that’s really true that sdl2
renders the text (or another dependency) and that it has actually support for emoji in a newer version.
Edit: You could use another text editor like Atom. It should not crash and it has syntax highlighting. I also have an additonal package autocomplete-python
installed. Another simpler editor should work fine too but it may not have syntax highlighting.
You need to use a font that includes that character. The default kivy font probably does not.
Embedding icons in fonts is a somewhat popular thing to do even without using standard characters, see e.g. http://fontello.com/. You might find this a nice way to insert a back arrow, just find one you like and use the custom font it provides.
That's not Kivy related, you'll need a designer for that. Not sure if there are subreddits for this type of request. But you probably can get really far, if not completely what you need, with sites like https://www.flaticon.com/ for example.
The option_cls property points at the object that will be used for the spinner dropdown entries. You can replace it with your own class in which you configure the appearance etc. that you want.
Kivy is a framework. Usually you would want to run it as your point of entry, and call all other scripts after you have Kivy up and running.
If you really want to do this, I suggest loading your kv-tree lazily with the >Builder.load_file('path/to/file.kv')
or
>Builder.load_string(kv_string)
kv is hierarchical, yes. The example you posted should give you a rectangle with a button inside of a button (though I'm not sure if buttons inside of buttons work)
Example for kv <-> py interaction:
kv:
<Window1>
BoxLayout:
Button:
text: 'Test'
py:
class Ingame():
pass
For the screen thingy, I'd suggest you take a look at the Screen Manager (http://kivy.org/docs/api-kivy.uix.screenmanager.html) it's exactly what you need
"App" is just short for "application". With Kivy, the process of creating your app/application is the same on any platform, except you don't use the Android or iOS tools to compile your application, you use something like PyInstaller.
Probably an attiny85 can do that, but obviously it'll need some work..
https://ernstsite.wordpress.com/page2-2/attiny85-and-rpi/
Edit: Also, I'm not into this stuff, but https://platformio.org/ has been on my "to play with" list for a while. I can be used for programming the atmel microcontrollers iirc.
I assume you are looking for background services for android only right? Ive used back ground services/listeners to operate a blue tooth padlock http://collabedit.com/qs862. You're going to have to use pyjnius and understand how java+android does background services. It's a little tricky but once you kind of get the idea of how pyjnius works and how back ground services or listeners work its not too bad. You'll also need to do some tweaking to your gradle template to add back ground service to your app. It took my awhile get a feel for it all but it IS possible to use back ground sevices with Kivy. Also check out some of plyers source code theres some examples in there too probably.
I created this app with kivy https://play.google.com/store/apps/details?id=org.translator.translator
You can check it out. I open sourced it on github so you can take look at the source code there.
I think the kivy developers did a great job. Sure there is some limitation but generally the framework is solid and the docs are good.
Yeah I've got ios and Android apps on the app store https://play.google.com/store/apps/details?id=fin_aquatic_rentals.fin_aquatic_rentals.fin_aquatic_rentals.fin_aquatic_rentals and https://apps.apple.com/us/app/fin-aquatic-rentals/id1435736012
It doesn't, but it's a pretty trivial oversight that can be fixed easily. I'll probably do a PR for it soon. I already got it working with https://play.google.com/store/apps/details?id=net.inclem.colourblind, so you should see the icon for that one looks correct.
It seems Hidden Settings for MIUI last update was February 15, 2019, at that time Kivy were already using new sdl2 bootstrap. I tried to rebuild my game with Python 2 by adding it as a requirement on buildozer.spec but buildozer complain that I must use python 3. Maybe I should contact Yunus Ceyhn asking him about how he configures buildozer to build for Python 2.
This problem doesn't seem to affect only me. ALL Kivy app that uses Python 3 seems affected, take a look at this.
Quadropoly - Best AI Property Trading Board Game (PYTHON 3)
The game is pretty much affected BUT THIS APP IS NOT AFFECTED
Hidden Settings for MIUI (PYTHON 2)
I really don't know when this happened for the first time or what Kivy version is affected by this but I remembered in 2017 I made several Kivy apps with Python 2 and I can confirm that i never seen this presplash problem on apps and games running Python 2 until now.
yeap, it takes a really long time to draw everything. It's actually a game Ants Shooter and therefore i don't really need to optimize it much. The only thing I want is to prevent pre splash image from being removed until everything is fully loaded.
Thank you for your reply, I already launched my second app with kivy :)
https://play.google.com/store/apps/details?id=org.solowar.ydsyokdiloyunlakelimeezberleme
Check out this kivy educational app (my second kivy app) just released to play store: https://play.google.com/store/apps/details?id=org.solowar.ydsyokdiloyunlakelimeezberleme I hope your critics will help me a lot!
I think I've seen this kind of problem before, caused by buggy graphics drivers, but I'm not sure how to tell if that's the case here.
Do Kivy apps like this one have the same problem?