![]() |
2010-01-31
, 03:28
|
Posts: 107 |
Thanked: 74 times |
Joined on Jan 2010
|
#2
|
![]() |
2010-01-31
, 04:23
|
Posts: 341 |
Thanked: 57 times |
Joined on Nov 2009
|
#3
|
You may convert the ui xml file in python code with pyuic4, there is another similiar tool for pyside.
The next step is to create a class to integrate/inherit that code.
IIRC eric4 should manage that automagically for you.
![]() |
2010-01-31
, 04:49
|
Posts: 60 |
Thanked: 69 times |
Joined on Oct 2007
@ Nomad
|
#4
|
![]() |
2010-01-31
, 08:53
|
Posts: 341 |
Thanked: 57 times |
Joined on Nov 2009
|
#6
|
![]() |
2010-01-31
, 17:41
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#7
|
Alright thanks for that tutorial ... worked beautifully !!
I got another small question: will all these Python scripts (like the one in the example you have mentioned above) work in the N900 too ? Or do I have to do any changes to them in order for them to work on the N900 ?
![]() |
2010-01-31
, 18:25
|
Posts: 341 |
Thanked: 57 times |
Joined on Nov 2009
|
#8
|
For the most part they should just work. My python app in my sig runs without modification on an Ubuntu Desktop and on the N900. There's changes to how the they *look* when moving from desktop to n900 but they run.
![]() |
2010-01-31
, 19:20
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#9
|
Yeah thats what I thought too .. That the actual look may differ somewhat because of different resolutions, etc ...
So how can I program Python apps on a PC and also know how they may look on an actual N900 ? Is there any N900 emulator kind of a thing for N900 Python developers ? This also relates to my other question here.
![]() |
2010-02-01
, 02:21
|
Posts: 341 |
Thanked: 57 times |
Joined on Nov 2009
|
#10
|
The scratchbox SDK environment allows you to use a Xephyr window to emulate the N900.
Thats what I do my Development and testing on.
I think I have got the basic Python environment running in my PC now, so I need to move to the next step ..