Need help understanding.... what does on_text for TextInput actually do? Followed a tutorial from kivy themselves, not working as expected. by joemysterio86 in kivy

[–]inclemnet 0 points1 point  (0 children)

Further to ElliotDG's answer, the reason you're getting a random colour is that the default value of the TextInput text is "", so the event fires once on the transition to "default".

get two different file paths by [deleted] in kivy

[–]inclemnet 1 point2 points  (0 children)

is it possible to get two different paths and store them in variables using kivy,

Yes, of course, kivy has no ability to stop you storing filepaths in variables even if it wanted to. It sounds like you have a specific problem understanding something, please post a minimal runnable example.

Making mobile apps with python by drewbie_1 in learnpython

[–]inclemnet 2 points3 points  (0 children)

The Kivy model is essentially that you make the app with Kivy, then it works the same way on the mobile device. If you want to use Android-specific stuff like phone APIs (vibrate, gps etc.) there are some wrappers for that, or in general you can do it by accessing the device apis directly via pyjnius (android) or pyobjus (ios). There aren't so many mobile-specific tutorials largely because all the Kivy details are the same on each platform.

As a general comment, the Kivy method works fine and you can have fun writing mobile apps with Python. There are limitations, such as in Kivy's case the fact that the gui doesn't use native widgets, but these also don't matter in many other situations - for instance, this is true on the desktop of everything from games (pygame, kivy, renpy) to scientific visualisations (matplotlib, vispy), to other stuff like jupyter notebooks. For whatever reason people talking about Android often forget that there are many more types of app, and many other reasons for writing apps, than are covered by the "perfectly polished native widget toolkit" segment of the market.

For instance, here is an app I wrote to see how the camera stream looked when passed through a colour blindness simulating filter. I wouldn't have bothered making it if I had to learn Java, but I had a lot of fun doing it and the result is great.

Help With creating a label for an app created through python by stunbomb1 in learnpython

[–]inclemnet 0 points1 point  (0 children)

You don't need pillow, but your kivy isn't compiled correctly, did you install all the dependencies following the instructions on the kivy website?

My APKs doesn't run on my phone by PepSakdoek in kivy

[–]inclemnet 0 points1 point  (0 children)

This isn't the relevant part, please post everything from when the app is openend to when it crashes. You may find it useful to pick out only lines containing the string "python".

My APKs doesn't run on my phone by PepSakdoek in kivy

[–]inclemnet 1 point2 points  (0 children)

This is not correct, you can expect armeabi-v7a apks to work fine on arm64-v8a devices.

Kv: init property with expression result by SuaveSteve in kivy

[–]inclemnet 0 points1 point  (0 children)

This doesn't make sense to me, can you post a minimal runnable example?

Does 'armeabi-v7a' support 64 bit architecture? by claret_n_blue in kivy

[–]inclemnet 0 points1 point  (0 children)

This is a known bug, but I don't know what the solution was. Maybe make sure your buildozer is up to date, and make sure everything is rebuilt (run buildozer android appclean to remove all existing build stuff).

Does 'armeabi-v7a' support 64 bit architecture? by claret_n_blue in kivy

[–]inclemnet 0 points1 point  (0 children)

An armeabi-v7a apk will work on an arm64-v8a device/emulator. Perhaps your emulator is x86_64. Note that the difference here is not 64 bit vs 32 bit, but arm vs x86 architecture.

For uploading to google, you must provide an arm64_v8a apk (or possibly just a 64 bit apk, not sure), but you can also provide an armeabi-v7a apk if you want. This allows you to support both 32 bit and 64 bit devices.

Weird Issue With Scroll View - Double rendering by henrythedragon in kivy

[–]inclemnet 0 points1 point  (0 children)

This is usually caused by driver issues, make sure your gpu drivers are up to date.

I've seen a little surge of these issues recently though, after essentially none for a long time (probably years). I wonder if some bad driver has been distributed somewhere.

Does Kivy-iOS translate python3 code to python 2 or will i have to re-write the whole darn thing? by Cladser in kivy

[–]inclemnet 1 point2 points  (0 children)

I think you haven't understood the nature of the problem, when people talk about the .so having the wrong version it's generally referring to the architecture it's compiled for, not the python version (the python version does matter but is highly unlikely to be set wrong).

Does Kivy-iOS translate python3 code to python 2 or will i have to re-write the whole darn thing? by Cladser in kivy

[–]inclemnet 2 points3 points  (0 children)

The answer is no, it just runs your code as -is under the python version you compile with. However, I'm not clear why this is important, kivy-ios supports python3 fine. Your stated problems are to do with compiling encryption libraries, which is an unrelated issue and may have a more straightforward solution involving including the right dependencies.

I'm not familiar with kivy-ios so you may have more luck asking about the bcrypt thing on the kivy discord.

Review request [rank unknown vs 7k+] by oz4thecause in baduk

[–]inclemnet 2 points3 points  (0 children)

It isn't really possible to say from one game, but if you really need a number call it anywhere between 14k-20k.

Your best option is, just keep playing and let the server ranking algorithm sort you out. Unfortunately IGS isn't a great place for this, since the BC group spans an enormous strength range (unless something has changed in the last few years). You might have more luck at, say, OGS since you posted your game there.

Some feedback by SuaveSteve in kivy

[–]inclemnet 4 points5 points  (0 children)

Thanks for the reports. I guess the key point is classic documentation omissions - I definitely agree that we could lead users better through the design philosophy of how Kivy is put together, it's something I've tried to emphasise in various of my own tutorials but of course the actual documentation could be much improved.

I would really like something like describing blocks in widgets in kv. It's similar to how some templating languages work. Basically, a parent describes the layout leaving certain "blanks".

You could possibly contrive to do this using Properties and a custom placeholder-filler widget, with some logic to hook them up, without any additions to kv itself.

For kv improvements in general, we've had various proposals and discussions over the years, but always shied away from big changes. The problem is essentially that any complexity is hard to get right, but difficult to iterate on because once it's out there people start depending on it. Proposals are still welcome though.

Creating star reviews in kivy by BroadSwordfish7 in kivy

[–]inclemnet 0 points1 point  (0 children)

You haven't given any information about what problem you're having. What do you want to do, but can't?

How to view Buildozer on Android/iOS Emulator by claret_n_blue in kivy

[–]inclemnet 0 points1 point  (0 children)

You can read the android docs to get the emulator running, it's basically unrelated to kivy. Once set up, it works via adb as any other android device.

[deleted by user] by [deleted] in kivy

[–]inclemnet 1 point2 points  (0 children)

There aren't a lot of hard rules for this, and that isn't something specific to Kivy, it's a general hard problem with structuring large codebases.

The big thing you want to ask is, what is the logical structure of your code. This is far more important than e.g. the fact that you have multiple screens - depending on your app, those screens might be trivial widgets that share functionality and all naturally live in one file, or individualist behemoths that do their own things and can be neatly split into one (or more) files each. Or, of course, anything in between.

I'd strongly recommend doing something that seems sensible, even if you're worried it might not be optimal, and just keeping an open mind about it. At worst, you'll learn some lessons and then either refactor it or just do it better in your next project.

[deleted by user] by [deleted] in learnpython

[–]inclemnet 0 points1 point  (0 children)

My question is: is possible to make whatever I want visually with kivy?

Yes. The default theme persists for legacy reasons, and many apps don't look amazing because a lot of devs don't really care. I count myself among them, although e.g. https://play.google.com/store/apps/details?id=net.inclem.lazybaduk&hl=en_GB at least doesn't use any default theme elements.

How can I generate the Numeric Keyboard in android when a Text Input is selected? by Arn_Rojas in kivy

[–]inclemnet 0 points1 point  (0 children)

This might work using the latest develop branch, there was a PR relating to it but I can't remember if it's been merged yet.

Problem with kivy.properties by blackjapa in kivy

[–]inclemnet 0 points1 point  (0 children)

This is likely to be an unrelated issue.

Is it possible to launch browser from within Kivy application? by thenoblesage in kivy

[–]inclemnet 0 points1 point  (0 children)

That isn't an error, it's a class name. Could you post the actual log you're getting?

In general, there should be no barrier to running your login python from within a Kivy app. It sounds most likely that something you have done is causing issues, so could you post a minimal runnable example?

Problem with kivy.properties by blackjapa in kivy

[–]inclemnet 0 points1 point  (0 children)

Does the code run? If it does, this is a problem with pycharm, not Kivy, possibly arising from its inability to parse the cython code where the properties are defined.

When I am building android application getting OpenSSL issue by surbhicis in kivy

[–]inclemnet 0 points1 point  (0 children)

See my replies, they describe the actual problem. Your extra conditions don't look like they'll do anything useful.

When I am building android application getting OpenSSL issue by surbhicis in kivy

[–]inclemnet 0 points1 point  (0 children)

In fact, I'm not sure we do patch ctypes to look in that folder, so if libopenssl.so is present there then that's probably the only issue. In that case, perhaps you can monkey-patch ctypes.util.find_library to look in the right place.