[SailfishDevel] If this list even used?

2013-09-30 Thread Nathan

Where's the activity? WTF.
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] If this list even used?

2013-09-30 Thread Benoît HERVIER



Le 2013-09-30 10:11, Nathan a écrit :

Where's the activity? WTF.
___
SailfishOS.org Devel mailing list


Here FTW !

--
Benoît HERVIER - http://khertan.net/
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] If this list even used?

2013-09-30 Thread Jukka Eklund
+1 :)



On Mon, Sep 30, 2013 at 11:21 AM, Benoît HERVIER wrote:

>
>
> Le 2013-09-30 10:11, Nathan a écrit :
>
>  Where's the activity? WTF.
>> __**_
>> SailfishOS.org Devel mailing list
>>
>
> Here FTW !
>
> --
> Benoît HERVIER - http://khertan.net/
>
> __**_
> SailfishOS.org Devel mailing list
>
___
SailfishOS.org Devel mailing list

[SailfishDevel] Python & Qt5 (PyOtherSide / PyQt)

2013-09-30 Thread Matt Austin
Hi,

It looks like we might now have a couple of possible options with Python
apps on Sailfish with Qt5:


1) PyOtherSide: http://thp.io/2011/pyotherside/

2) PyQt 5.0.1: http://www.riverbankcomputing.com/news/pyqt-501


I've been playing around today, and unfortunately was unable to get either
installed nicely on the Sailfish VM. PyOtherSide requires Python 3 (which
as far as I can tell is not available in the Sailfish VM), and I thought I
managed to get PyQt to make/install, but then I just got symbol errors when
I tried to import the modules.

Obviously I'm not very good at
compilation/linking/dependencies/flags/headers etc. (I am a python user
after all :P ). So I was wondering if there are any plans to add either
PyOtherSide or PyQt5 to the sailfish repos?


Failing that, some instructions for a dummy like me would be very welcome :)

Thanks,

-- 
Matt
m...@mattaustin.me.uk
http://mattaustin.me.uk/
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Python & Qt5 (PyOtherSide / PyQt)

2013-09-30 Thread FIlip Kłębczyk

W dniu 30.09.2013 13:08, Matt Austin pisze:

Hi,

It looks like we might now have a couple of possible options with Python
apps on Sailfish with Qt5:


1) PyOtherSide: http://thp.io/2011/pyotherside/

2) PyQt 5.0.1: http://www.riverbankcomputing.com/news/pyqt-501


I've been playing around today, and unfortunately was unable to get
either installed nicely on the Sailfish VM. PyOtherSide requires Python
3 (which as far as I can tell is not available in the Sailfish VM), and
I thought I managed to get PyQt to make/install, but then I just got
symbol errors when I tried to import the modules.

Obviously I'm not very good at
compilation/linking/dependencies/flags/headers etc. (I am a python user
after all :P ). So I was wondering if there are any plans to add either
PyOtherSide or PyQt5 to the sailfish repos?


Well I think I've seen Python 3 already in Mer, so most probably it will 
be in Sailfish (or is already). I also think that it is much more 
probable to see PyOtherSide on Sailfish. On Qt Developer Days happening 
next week in Berlin there is a talk about PyOtherSide by thp so maybe 
there something more will be known (or not).


I think PyQt from Riverbank is rather not the best solution on Sailfish 
- don't know if it is worth to dedicate time for that if PyOtherSide 
will be available. I've recently met in Prague some guy who developed 
his apps with PySide on Meego and now is trying to rewrite them to 
PyOtherside.


Regards,
Filip



___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Python & Qt5 (PyOtherSide / PyQt)

2013-09-30 Thread khertan
i m a bit busy to explain, but you can also use the python version which is 
installed on sailfish.

Do not forget to install python-devel in toolkit via the nice sailfish icon.

http://khertan.net/ownNotes
http://github.com/khertan/ownNotes

Regards

--
Benoît HERVIER - http://khertan.netLe 30/09/13 13:26 FIlip Kłębczyk a écrit :
W dniu 30.09.2013 13:08, Matt Austin pisze:
> Hi,
>
> It looks like we might now have a couple of possible options with Python
> apps on Sailfish with Qt5:
>
>
> 1) PyOtherSide: http://thp.io/2011/pyotherside/
>
> 2) PyQt 5.0.1: http://www.riverbankcomputing.com/news/pyqt-501
>
>
> I've been playing around today, and unfortunately was unable to get
> either installed nicely on the Sailfish VM. PyOtherSide requires Python
> 3 (which as far as I can tell is not available in the Sailfish VM), and
> I thought I managed to get PyQt to make/install, but then I just got
> symbol errors when I tried to import the modules.
>
> Obviously I'm not very good at
> compilation/linking/dependencies/flags/headers etc. (I am a python user
> after all :P ). So I was wondering if there are any plans to add either
> PyOtherSide or PyQt5 to the sailfish repos?

Well I think I've seen Python 3 already in Mer, so most probably it will 
be in Sailfish (or is already). I also think that it is much more 
probable to see PyOtherSide on Sailfish. On Qt Developer Days happening 
next week in Berlin there is a talk about PyOtherSide by thp so maybe 
there something more will be known (or not).

I think PyQt from Riverbank is rather not the best solution on Sailfish 
- don't know if it is worth to dedicate time for that if PyOtherSide 
will be available. I've recently met in Prague some guy who developed 
his apps with PySide on Meego and now is trying to rewrite them to 
PyOtherside.

Regards,
Filip



___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Python & Qt5 (PyOtherSide / PyQt)

2013-09-30 Thread Thomas Perl
Hi,

On Sep 30, 2013, at 1:08 PM, Matt Austin  wrote:
> It looks like we might now have a couple of possible options with Python apps 
> on Sailfish with Qt5:
> 
> 1) PyOtherSide: http://thp.io/2011/pyotherside/
> 
> 2) PyQt 5.0.1: http://www.riverbankcomputing.com/news/pyqt-501
> 
> I've been playing around today, and unfortunately was unable to get either 
> installed nicely on the Sailfish VM. PyOtherSide requires Python 3 (which as 
> far as I can tell is not available in the Sailfish VM), and I thought I 
> managed to get PyQt to make/install, but then I just got symbol errors when I 
> tried to import the modules.
> 
> Obviously I'm not very good at compilation/linking/dependencies/flags/headers 
> etc. (I am a python user after all :P ). So I was wondering if there are any 
> plans to add either PyOtherSide or PyQt5 to the sailfish repos?


I can't say too much about PyQt, as I haven't used it myself. For PyQt, you 
might have to package it yourself, but be aware of PyQt's licensing: 
http://www.riverbankcomputing.com/software/pyqt/license

The rest of this mail deals with PyOtherSide:

It's available in the mer-python3 repository:
https://build.merproject.org/project/show?project=mer-python3

In the sb2 target and on a device, you can add that repo using:
zypper ar 
http://repo.merproject.org/obs/mer-python3/latest_armv7hl/mer-python3.repo

In the Emulator, you can add that repo using:
zypper ar 
http://repo.merproject.org/obs/mer-python3/latest_i486/mer-python3.repo

After that (and a possible "zypper ref"), you can install the QML Plugin in the 
emulator using:
zypper in pyotherside-qml-plugin-python3-qt5

If you are packaging an application, you should also add this to the RPM .spec 
file (as QML dependencies are not auto-detected):
Requires: pyotherside-qml-plugin-python3-qt5

Be aware that this is a run-time dependency, so you don't really need to 
install the QML plugin in your SDK target (it doesn't need to be available at 
build-time), only on the emulator and on the device where you actually run the 
application.

The sources are available here:
https://github.com/mer-python3/

The API documentation is here:
http://thp.io/2011/pyotherside/doc/classQPython.html

Some basic usage examples are here:
https://github.com/thp/pyotherside/tree/master/examples

If you're coming from PySide on Harmattan, it's a totally different setup -- 
instead of launching a Python interpreter that then loads the PySide bindings, 
which then resolve all Qt symbols that have bindings (takes a long time), you 
start out with a normal QML application (startup speed = same as C++ QML 
application) and then import the PyOtherSide QML plugin there (only loads 
libpython), and once the UI is up (i.e. the user can see your application 
window), you can then start loading Python modules, etc..

Also, try to avoid the synchronous functions, and use the asynchronous API 
instead (see PyOtherSide's documentation for examples). Think of your Python 
code as the "data backend implementation" for your QML UI, and think of your 
QML code as your main application. Or in other words, "QML uses the services of 
Python for its backend", instead of "Python uses the services of QML for its 
frontend".

Also, it's Python >= 3.3 only at this point. See 
http://www.python.org/dev/peps/pep-0404/ and 
https://github.com/thp/python2sucks to figure out why this is a very good idea 
and why you want to have that.

Protip: If you want to have a Python 3 interpreter to play with on the command 
line, install "python3-base" from that repository.


HTH :)
Thomas
___
SailfishOS.org Devel mailing list


[SailfishDevel] SailfishOS style buttons

2013-09-30 Thread Олег Линкин
What is more matches for SailfshOS style: IconButtons with actions or
actions in pulldown menu?
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] SailfishOS style buttons

2013-09-30 Thread Joona Petrell
Hi Олег,

Pulley menus are good for global actions relevant for the page ("New message", 
"Search", "Sync", "Update"), context menus and icon buttons are more 
appropriate for actions related to a specific content item (photo, person, 
location, song, etc.) displayed inside the page.

As a rule of thumb primary action (open item in full-screen, call in phone, 
play in video player, etc.) is activated by tapping the content item, and most 
secondary actions (delete, edit, favorite, add to playlist, etc.) are accessed 
by long-pressing the item and selecting appropriate action from the context 
menu that opens.

In general most actions which you would traditionally show in a toolbar in 
Sailfish you instead expose from a pull-down menu for quicker access and better 
one-handed use. But there are still use cases for toolbars, for example when 
the pulley menu is already reserved for something else or when the user is 
expected to scroll a long list of content (as the pulley menu is only 
accessible on the top of the list).

Some examples of icon button usage:

1.) clearing text field contents, cross icon "image://theme/icon-m-clear"
2.) favoriting item, star icon (favorite ? 
"image://theme/icon-m-favorite-selected" : "image://theme/icon-m-favorite")
3.) appending new content item, e.g. new person in recipient field, plus icon 
(image://theme/icon-m-add").

Cheers,

Joona


From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
on behalf of Олег Линкин [maledictusdema...@gmail.com]
Sent: 30 September 2013 15:47
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] SailfishOS style buttons

What is more matches for SailfshOS style: IconButtons with actions or actions 
in pulldown menu?
___
SailfishOS.org Devel mailing list

[SailfishDevel] OAuth2 authorization for application

2013-09-30 Thread Oleg Linkin
Hi.
How do you authorize ur application, if it should open webpage with
Allow/Disallow access button to service and how do you get token from site,
if access granted?
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Python & Qt5 (PyOtherSide / PyQt)

2013-09-30 Thread Roberto Colistete Jr.

Em 30-09-2013 09:40, Thomas Perl escreveu:

Also, it's Python >= 3.3 only at this point. See 
http://www.python.org/dev/peps/pep-0404/ and https://github.com/thp/python2sucks 
to figure out why this is a very good idea and why you want to have that.


Hi Thomas Perl,

Citing your words (in Twitter) : to convert this plugin to Python 
2.7 is very simple, in "pyotherside/python.pri" (source code), change 
"python3.3" with "python2.7".


For example, in Qt 5.1 for Linux PC, I've made this change in 
PyOtherSide, built it and used it in a simple "Limit.py"/"Limit.qml" 
mathematical application (http://www.robertocolistete.net/Limit/) using 
Qt Quick Controls & Python 2.7 & SymPy, see the screenshot below. 
Limit/Calculus will be available on Sailfish.


I think it would be interesting to also have 
"pyotherside-qml-plugin-python-qt5" (using Python 2.7, because it is the 
default Python on Mer/Sailfish) on Sailfish OS in a default Mer/Sailfish 
repository. So making Python softwares with PyOtherSide on Sailfish 
would be very simple (no need to use Python 3, no need to the user add 
repositories, etc).


The Talk Maemo.org topic "Python & Qt5 on Sailfish" :
http://talk.maemo.org/showthread.php?t=91049
has many useful discussions about PyOtherSide, PyQt5, etc.

About PyQt5 on Mer/Sailfish, I think it is worth to : help porting 
many PyQt4/PyQt5 softwares from PC and Maemo 4 & 5; have all Qt5 
functions in Python. More programming options -> more softwares on 
Mer/Sailfish. 8-)


Regards,

Roberto


<>___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] If this list even used?

2013-09-30 Thread Marcin Mielniczuk
Guess he doesn't get anything like me some time ago.

--
Marcin


2013/9/30 Jukka Eklund 

> +1 :)
>
>
>
> On Mon, Sep 30, 2013 at 11:21 AM, Benoît HERVIER wrote:
>
>>
>>
>> Le 2013-09-30 10:11, Nathan a écrit :
>>
>>  Where's the activity? WTF.
>>> __**_
>>> SailfishOS.org Devel mailing list
>>>
>>
>> Here FTW !
>>
>> --
>> Benoît HERVIER - http://khertan.net/
>>
>> __**_
>> SailfishOS.org Devel mailing list
>>
>
>
> ___
> SailfishOS.org Devel mailing list
>
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] If this list even used?

2013-09-30 Thread FIlip Kłębczyk

W dniu 30.09.2013 17:24, Marcin Mielniczuk pisze:

Guess he doesn't get anything like me some time ago.


Do you have an idea what was it in your case? I mean the reason why you 
didn't receive mails.


Regards,
Filip

___
SailfishOS.org Devel mailing list


[SailfishDevel] SilicaWebView

2013-09-30 Thread Oleg Linkin
Hi.
Exmaple doesn't work with: LinkView.qml:7 SilicaWebView is not a type
May be I need some special imports?
How I can force it to work?
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] SilicaWebView

2013-09-30 Thread FIlip Kłębczyk

W dniu 30.09.2013 18:58, Oleg Linkin pisze:

Hi.

Exmaple doesn't work with: LinkView.qml:7 SilicaWebView is not a type


Well, there is no such component in Silica components, see documentation:
https://sailfishos.org/sailfish-silica/sailfish-silica-all.html


May be I need some special imports?

How I can force it to work?


You should use instead WebView (which is just a part of QtQuick):
http://qt-project.org/doc/qt-5.1/qtwebkit/qml-qtwebkit3-webview.html

Regards,
Filip

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] If this list even used?

2013-09-30 Thread Marcin Mielniczuk
iirc using inboxalias.com address.

--
Marcin


2013/9/30 FIlip Kłębczyk 

> W dniu 30.09.2013 17:24, Marcin Mielniczuk pisze:
>
>  Guess he doesn't get anything like me some time ago.
>>
>
> Do you have an idea what was it in your case? I mean the reason why you
> didn't receive mails.
>
> Regards,
> Filip
>
>
> __**_
> SailfishOS.org Devel mailing list
>
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Python & Qt5 (PyOtherSide / PyQt)

2013-09-30 Thread Martin Kolman

30.9.2013 16:15, Roberto Colistete Jr.:
About PyQt5 on Mer/Sailfish, I think it is worth to : help porting 
many PyQt4/PyQt5 softwares from PC and Maemo 4 & 5; have all Qt5 
functions in Python. More programming options -> more softwares on 
Mer/Sailfish. 8-)
I would second that. While I think at least in my case, PyOtherSide & 
Python backend should be able to cover all what is needed for my modRana 
and Mieru Sailfish ports, I think there might be some use-cases where 
all the various Qt class wrappings provided by PyQt might be useful. 
Stuff like XML/JSON parsing, network access manager, Qt resources, 
QObject, signals & slots, QWidget, QThread, QtSerialPort, etc.

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Python & Qt5 (PyOtherSide / PyQt)

2013-09-30 Thread Matt Austin
Hi Thomas,


On 30 September 2013 20:40, Thomas Perl  wrote:

>
> It's available in the mer-python3 repository:
> https://build.merproject.org/project/show?project=mer-python3
>
>

> After that (and a possible "zypper ref"), you can install the QML Plugin
> in the emulator using:
> zypper in pyotherside-qml-plugin-python3-qt5
>
> If you are packaging an application, you should also add this to the RPM
> .spec file (as QML dependencies are not auto-detected):
> Requires: pyotherside-qml-plugin-python3-qt5
>

Fantastic, just what I was after - I'll have a play with it this week :)

Thanks very much for your help!

-- 
Matt
m...@mattaustin.me.uk
http://mattaustin.me.uk/
___
SailfishOS.org Devel mailing list