|
2010-02-12
, 00:01
|
Posts: 87 |
Thanked: 47 times |
Joined on Sep 2009
@ Sorocaba, Brasil
|
#2
|
|
2010-02-12
, 01:01
|
Posts: 529 |
Thanked: 46 times |
Joined on Sep 2007
|
#3
|
|
2010-02-12
, 01:23
|
Posts: 53 |
Thanked: 90 times |
Joined on Nov 2009
@ Manaus, Brazil
|
#4
|
hi,
just test basic python script
tried python2.4 example by Teemu
http://www.teemuharju.net/code/uitest.py
The Following 2 Users Say Thank You to lizardo For This Useful Post: | ||
|
2010-02-12
, 01:40
|
Posts: 529 |
Thanked: 46 times |
Joined on Sep 2007
|
#5
|
|
2010-02-12
, 03:02
|
Posts: 53 |
Thanked: 90 times |
Joined on Nov 2009
@ Manaus, Brazil
|
#6
|
@lizardo
this example is only 3 years old
Any chance for GUI python2.5 examples to run on Diablo (2008He ?)
The Following User Says Thank You to lizardo For This Useful Post: | ||
|
2010-02-12
, 03:15
|
Posts: 529 |
Thanked: 46 times |
Joined on Sep 2007
|
#7
|
You mean Maemo 5 (Fremantle) examples ? No
I suggest you take example code from existing projects on the diablo extras repository. Just find projects written in python (and which have functionality similar to what you want), and get sources from:
http://repository.maemo.org/extras-d...o/free/source/
Be careful to look at the code license, though.
|
2010-02-12
, 06:45
|
Posts: 540 |
Thanked: 288 times |
Joined on Sep 2009
|
#8
|
Isn't the default theme a pixmap one? Is it possible to change the background colors, then?
|
2010-02-12
, 06:51
|
Posts: 540 |
Thanked: 288 times |
Joined on Sep 2009
|
#9
|
I don't mean Maemo 5 (Fremantle) examples.
as I use gpsbt lib to read gps data
and need to learn how to write basic
map tile (image) viewer, centering a map around GPS location.
If you are aware of any such python example and of it's name, just tell me.
Open image file (map tile)
get pin in the center and move map tile image
as GPS updates
nothing more , just for fun
If your opinion is that python is not suitable for this task, just tell me in advance.
|
2010-02-12
, 07:36
|
Posts: 540 |
Thanked: 288 times |
Joined on Sep 2009
|
#10
|
Basically I have a hildon.Button (also tried with plain gtk.Button) and I want to change the background color between red and green based on state changes.
Tried the following approaches:
1. Put the whole button inside eventbox and change eventbox background (the "official" GTK workaround to the fact that buttons do not generally allow background to be messed with), does "nothing" (ie the button with the default background and all is drawn on top of the eb).
2. Put the first child of the hildon.Button (gtk.Alignment) inside the eventbox: makes ugly mess where there is rectangular box inside the button area with the gray button borders visible, click only works if done in the gray border (i guess the eventbox could be connected to the signals as well, but since this looks fugly I didn't bother experimenting with that).
I wonder if I need to start reading hildon sources to figure out how exactly they build these widgets...