← Back to team overview

ubuntu-phone team mailing list archive

Re: Status of PyQt for 14.04

 

The options qmlscene used are passed onto Qt itself, so the solution
for Python is the same. You need to become the phablet user as
indicated, and provide the respective file and option to Qt, in
whatever way PyQt does it.

On Mon, Sep 30, 2013 at 1:43 AM, Roberto Colistete Jr.
<roberto.colistete@xxxxxxxxx> wrote:
>     I haven't realised where is the solution (to call Python script using
> PyQt5 inside Ubuntu Touch) in the cited threads.
>
>     "qmlscene" isn't used, instead the QML file is open by Python using
> "view.setSource(QUrl.fromLocalFile('pyqmldemo.qml'))".
>
> Em 29-09-2013 23:14, Gustavo Niemeyer escreveu:
>
>> I've had a similar issue running stuff from the terminal.
>>
>> Please see these two threads for the solution:
>>
>> https://lists.launchpad.net/ubuntu-phone/msg04248.html
>> https://lists.launchpad.net/ubuntu-phone/msg04231.html
>>
>>
>> On Sun, Sep 29, 2013 at 6:40 PM, Roberto Colistete Jr.
>> <roberto.colistete@xxxxxxxxx> wrote:
>>>
>>> Em 25-09-2013 16:25, Andrew Starr-Bochicchio escreveu:
>>>>
>>>> This is something I'm interested in as well, and the answer to all
>>>>
>>>> these questions seems to be yes.
>>>>
>>>> Dmitry Shachnev made a little demo using Python3 and PyQt5 with Ubuntu
>>>> SDK components that I've successfully run on the phone:
>>>>
>>>> http://people.ubuntu.com/~mitya57/pyqmldemo.py
>>>> http://people.ubuntu.com/~mitya57/pyqmldemo.qml
>>>>
>>>> You need to be using the image with a writable file system and install
>>>> the python3-pyqt5.qtquick package.
>>>>
>>>> The real unanswered question is whether PyQt5 will be available on the
>>>> image.
>>>
>>>
>>>      Hi Andrew,
>>>
>>>      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 ?
>>>
>>>      The discussions about this example :
>>> https://plus.google.com/102795169786046713434/posts/imZAq7pcdR8
>>> don't answer my above question.
>>>
>>>          Regards,
>>>
>>>          Roberto
>>>
>>>
>>> --
>>> Mailing list: https://launchpad.net/~ubuntu-phone
>>> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~ubuntu-phone
>>> More help   : https://help.launchpad.net/ListHelp
>
>
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help   : https://help.launchpad.net/ListHelp



-- 

gustavo @ http://niemeyer.net


References