← Back to team overview

ubuntu-phone team mailing list archive

Re: Status of PyQt for 14.04

 

On Sun, Sep 29, 2013 at 5:40 PM, Roberto Colistete Jr.
<roberto.colistete@xxxxxxxxx> wrote:
>     Yeah, it runs (only) on Ubuntu 13.10 for PC !  I've used, for example :
> $ APP_ID=PyQMLdemo ./pyqmldemo.py
> and it opens a window and shows file contents.
>
>     Running the same command in Ubuntu Touch @ Nexus 4 shows the window but
> I can't type in the "Enter file name" field, neither the "Show" button seems
> to work. When I swipe from left to right, the program stops. Does anybody
> know how to run Python/PyQt5 programs inside Ubuntu Touch without these
> problems ?

I should have added (quoting from a different conversation):

Figuring out how to actually launch thing thing was a bit confusing.
Just running `python3 pyqmldemo.py` launched it, but for some reason
the UI was unresponsive. Creating a desktop file and trying to use
upstart with "start application APP_ID=pyqml" just led to a blank
screen. Finally got it working with:

exec sh -c python3 /home/phablet/pyqmldemo.py
--desktop_file_hint=/home/phablet/.share/applications/pyqml.desktop

After a reboot, the phone picked up the desktop file and you could
launch it from the dash.

Here's the desktop file I used:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Exec=python3 /home/phablet/pyqmldemo.py
Icon=properties
Name=pyqml
X-Ubuntu-Touch=true
X-Ubuntu-StageHint=SideStage

-- Andrew Starr-Bochicchio

   Ubuntu Developer <https://launchpad.net/~andrewsomething>
   Debian Developer <http://qa.debian.org/developer.php?login=asb>
   PGP/GPG Key ID: D53FDCB1


Follow ups

References