PinePhone. How to run Python/Tkinter app? - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120) +--- Forum: General Discussion on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=127) +--- Thread: PinePhone. How to run Python/Tkinter app? (/showthread.php?tid=18643) |
PinePhone. How to run Python/Tkinter app? - Manieck71 - 08-23-2023 Hello everyone I have a problem. A two years ago I created an application for Raspberry Pi 3 in Python and Tkinter. Recently I bought a PinePhone64 and I would like to transfer this application to this device. I installed Mobian with Phosh there. After researching the subject, it turned out that the RPi has an X11 display server, and the PP64 has a wayland. Is there any possibility to run my application on PP64 without rebuilding the GUI? How to do it? I tried to install X11 server. Code: sudo apt install xauth xorg later Code: sudo startx Server starts, but the interface on the device changes to this: https://zdjecianaallegro.pl/gallery/008946351-.html#1 The touch does not work, the keyboard cannot be brought up. I would like my application to appear in the original interface. https://zdjecianaallegro.pl/gallery/008946351-2.html#2 I am a beginner in Mobian & Linux Thank you in advance for your help RE: PinePhone. How to run Python/Tkinter app? - Kevin Kofler - 08-23-2023 Running a standalone X11 session is a bad idea on the PinePhone. Phosh does not support it (and neither does Plasma Mobile). There is SXMO which supports X11, but since you write you are a beginner to GNU/Linux, I doubt you will want to use that (and I also think it is not supported by Mobian). Instead, you will want to use XWayland (apt install xwayland) in the Wayland session. (You should not have to do anything beyond installing the package. It should get autostarted if it is installed.) RE: PinePhone. How to run Python/Tkinter app? - Manieck71 - 08-24-2023 (08-23-2023, 05:09 PM)Kevin Kofler Wrote: Running a standalone X11 session is a bad idea on the PinePhone. Phosh does not support it (and neither does Plasma Mobile). There is SXMO which supports X11, but since you write you are a beginner to GNU/Linux, I doubt you will want to use that (and I also think it is not supported by Mobian). I did Code: sudo apt update Reading package lists... Done Building dependency tree... Done Reading state information... Done xwayland is already the newest version (2:23.2.0-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. How can I now use XWayland to run a python program? RE: PinePhone. How to run Python/Tkinter app? - Manieck71 - 08-24-2023 It worked!!! Code: DISPLAY=:1 python3 app.py So easy... |