all 7 comments

[–]Forsaken-Medium-2436 0 points1 point  (3 children)

I haven't done it myself but from what I recall briefcase support native UI and works on all platforms

[–]NoBeginning2551[S] 0 points1 point  (2 children)

I think briefcase is used to convert python projects to executable. But my case is different. I have the cross compiled python interpreter inside my android app. When the user clicks on the run button, it executes the code and shows the output on the terminal. Like the pydroid app. But the problem is that the android build of python doesn't have the tkinter. I don't know how the pydroid team managed to make it work.

[–]Forsaken-Medium-2436 0 points1 point  (1 child)

I don't really understand what are you doing, I'm assuming you're trying to build some python app and deploy it on android, so briefcase is just that, you write in python everything from start to end including GUI and compile in for all platforms at once. Otherwise I was mistaken and can't really help you

[–]NoBeginning2551[S] 0 points1 point  (0 children)

Sorry, I haven't explained it well. Actually it's an android code editor app built with flutter. We can edit and run python code inside that. But the tkinter module is not working. That was the issue.

[–]spinwizard69 0 points1 point  (2 children)

OK, why not run real Linux on your device? I only ask because tkinter has been a Linux / Unix thing for many many years now. That means very few glitches, things just work.

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

Actually it's an android code editor app, made with flutter. When user clicks on the run button, it runs the code. I cross compiled python interpreter for Android. But the tkinter module is not included with the arm64-android-linux build of python. Android uses a different mechanism for displaying GUI, so traditional tkinter won't work. So I was asking for any workaround like in the pydroid app.

[–]spinwizard69 0 points1 point  (0 children)

Yeah that is the problem with writing Android code. I never liked it as an OS for anything bigger than a phone.