maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Compatible programming(for all Maemo version) (https://talk.maemo.org/showthread.php?t=56428)

daperezg 2010-06-17 08:26

Compatible programming(for all Maemo version)
 
I want to start programming but I would like the program could run on any Maemo version, is it possible?

I know programming for QT is only supported for OS2008, after install an early and limited version of QT.

What about tcl/tk? have any dependency of gtk/qt?
Are there any script language/interpreter with graphic functions who works in QT and GTK?

In conclusion I have a Os2008 device and I prefer don't be dependent of any company decision however I understand the nokia movement to QT.

rambo 2010-06-17 10:02

Re: Compatible programming(for all Maemo version)
 
python 2.5 and gtk/hildon. there are of course some things that work differently across the major versions, but those are genrally minor things.

much more important diffference is that maemo5 stronly prefers finger size UIs and Harmattan requires them, do don't do anything that would require stylus.

daperezg 2010-06-18 10:13

Re: Compatible programming(for all Maemo version)
 
These are bad news for me :(

and about stylus... are you only talking about interaction with windows? I understand maemo still supporting stylus character recognition (called graffiti also).

I don't like finger-onscreenkeyboard and this is the way why i never will use a iphone.


Quote:

Originally Posted by rambo (Post 718965)
python 2.5 and gtk/hildon. there are of course some things that work differently across the major versions, but those are genrally minor things.

much more important diffference is that maemo5 stronly prefers finger size UIs and Harmattan requires them, do don't do anything that would require stylus.


rambo 2010-06-20 07:38

Re: Compatible programming(for all Maemo version)
 
Quote:

Originally Posted by daperezg (Post 720324)
and about stylus... are you only talking about interaction with windows?

UI elements, buttons etc, text-input is handled by the Hildon framework automagically depending on HW and settings etc.

Screen resolutions are very different on N8x0 and N900 too, so make sure you use the size constants (HILDON_SIZE_xx) since "fanger sized" button is a lot more pixels on N900 than on N8x0 (especially and issue for any bitmaps you might use in your UI).

daperezg 2011-03-04 14:42

Re: Compatible programming(for all Maemo version)
 
I left this interesting task for a long time, but now I have more time and I will start with writing code for gtk/hildon and Maemo4&5.

More questions

Could Nokia leave the support for Gtk in future OS versions?
Should I use Maemo 4SDK or Maemo5 SDK?

epage 2011-03-04 14:59

Re: Compatible programming(for all Maemo version)
 
Quote:

Originally Posted by daperezg (Post 960610)
I left this interesting task for a long time, but now I have more time and I will start with writing code for gtk/hildon and Maemo4&5.

More questions

Could Nokia leave the support for Gtk in future OS versions?
Should I use Maemo 4SDK or Maemo5 SDK?

GTK is used and included with some Meego UXs but to be "Meego Compliant" you can only have certain deps. The community repo is the place for distributing these types of apps where you have deps beyond meego compliance. People are porting the best parts of Hildon to GTK so Hildon will continue to live on in a form.

I've found that I've been able to support apps from OS2008 to Maemo 5 (and working on Meego support) with both GTK and Qt.

I do everything in Python so no need for any SDK (which is actually one of the main reasons I do it all in Python). With Qt and Python you have to be careful because OS2008 extras-devel contains a broken version of those packages.

daperezg 2011-03-14 22:50

Re: Compatible programming(for all Maemo version)
 
I've been reading about python and doing small tests with python 2.3.5.
Now I want to write code for pymaemo+hildon+gtk, and I would like to use a IDE editor in MacOSX computer.

I read about IDLE, which came by default with python distribution, and my question is:

can I install and use the latest python (version 3.2)?
Are you using any IDE? which do you recommend?

StefanL 2011-03-15 17:15

Re: Compatible programming(for all Maemo version)
 
Quote:

Originally Posted by daperezg (Post 967835)
I've been reading about python and doing small tests with python 2.3.5.
Now I want to write code for pymaemo+hildon+gtk, and I would like to use a IDE editor in MacOSX computer.

I read about IDLE, which came by default with python distribution, and my question is:

can I install and use the latest python (version 3.2)?
Are you using any IDE? which do you recommend?

N900 only supports Python 2.5, so writing your programs using 3.2 is not the way to go, unless you do not use features not supported by 2.5.

I use GTkEditor to do all my coding and debugging on the N900.

epage 2011-03-15 17:35

Re: Compatible programming(for all Maemo version)
 
Quote:

Originally Posted by daperezg (Post 967835)
I've been reading about python and doing small tests with python 2.3.5.
Now I want to write code for pymaemo+hildon+gtk, and I would like to use a IDE editor in MacOSX computer.

I read about IDLE, which came by default with python distribution, and my question is:

can I install and use the latest python (version 3.2)?
Are you using any IDE? which do you recommend?

Like StefanL said, Python 2.5 is the lowest common denominator for all devices. The language broke compatibility at 3.0 a lot of libraries don't even work with 3.0+ yet.

I just use VIM. Some use PyDev with Eclipse, and others Wingware IDE.

daperezg 2011-03-21 13:52

Re: Compatible programming(for all Maemo version)
 
I can't use the size constants (HILDON_SIZE_xx) in python for OS2008, more info in the thread

Are you using this features in code for N8x0?
Can you give more info? I am pretty interested in button functions..



Quote:

Originally Posted by rambo (Post 722380)
UI elements, buttons etc, text-input is handled by the Hildon framework automagically depending on HW and settings etc.

Screen resolutions are very different on N8x0 and N900 too, so make sure you use the size constants (HILDON_SIZE_xx) since "fanger sized" button is a lot more pixels on N900 than on N8x0 (especially and issue for any bitmaps you might use in your UI).



All times are GMT. The time now is 16:40.

vBulletin® Version 3.8.8