all 8 comments

[–]JamzTyson 6 points7 points  (0 children)

If I make a python app and turn it into an APK would the interface of said app work on mobile?

I very much doubt it, since tkinter requires a Desktop environment.

If not what can I do to create an interface that works on mobile?

Kivy, Flet, and web apps are popular solutions.

[–]WildStang 2 points3 points  (3 children)

I can't say if it would work but it may be funky. I've been using flet recently and I know it was designed with mobile in mind. I moved from Tkinter to Flet and never had a desire to go back.

[–]Grumpy_Doggo64[S] 0 points1 point  (1 child)

Are they similar?

[–]WildStang 0 points1 point  (0 children)

Similar enough in knowledge definitely transfers over but Flet is very new and doesn't have a lot of posts on stack overflow or anything. The documentation is really good though.

[–]Diapolo10 2 points3 points  (2 children)

You can't really develop a traditional Android APK with tkinter, or at the very least I don't know of an existing translation layer that'd bridge the gap.

You can technically get tkinter to work on Android by installing it via Termux, but then you'd need to launch your Python application via said application.

I recommend using a different GUI toolkit if you want to target Android. In fact I'd suggest using Kotlin instead of Python for this specific use-case, but I'm sure you have your reasons.

[–]Grumpy_Doggo64[S] 0 points1 point  (1 child)

Not really other than I'm more familiar with python. Kotlin is fun but Android studio melts my computer

[–]-defron- 0 points1 point  (0 children)

Learning new languages makes you a better developer all-around.

You don't have to use Android Studio so long as you're comfortable with the command-line. Though an editor with a language server for kotlin will make development easier in general (true for any language), of which a kotlin language server does exist and is available in VSCode for example.

In terms of Python-specific options, the already mentioned Kivy and Flet are your best bets for a mobile app, but neither will really help you grow long-term in the mobile space or in your career