| Prev |   3     4   5   6     7   15 | Next | Last
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900) (https://talk.maemo.org/showthread.php?t=44576)

noobmonkey 2010-02-17 23:27

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
ok figured out
hildon.hildon_gtk_window_set_progress_indicator(di alog, 1)
then
hildon.hildon_gtk_window_set_progress_indicator(di alog, 0)

If i put Import hildon at the top, i get segmentation errors
if i leave it out i get Global name 'hildon' not defined... grrrrrrrrr!!

fatalsaint 2010-02-17 23:29

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Quote:

Originally Posted by noobmonkey (Post 533281)
ok figured out
hildon.hildon_gtk_window_set_progress_indicator(di alog, 1)
then
hildon.hildon_gtk_window_set_progress_indicator(di alog, 0)

If i put Import hildon at the top, i get segmentation errors
if i leave it out i get Global name 'hildon' not defined... grrrrrrrrr!!

hildon is GTK-based.. you'll need GTK and QT going about it this way .. if possible.

Unfortunately I haven't had to deal with integrating QT into the GTK desktop yet so I can't help you out here.

noobmonkey 2010-02-17 23:52

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
shattered and almost time for bed!

All working fine :)

As the code is small, may strip the bit i need out, and start again in QTdesigner :) - just paste them back in when needed.

noobmonkey 2010-02-18 11:16

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
3 Attachment(s)
changed the latest version a little bit.

made everything smaller and neater.
added maemo firmware version.

hartti 2010-02-18 22:41

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
@noobmonkey, how do you get the maemo firmware version number?

I tried os.uname() but it does not seem to return it and os.name is no help either...

Hartti

qwerty12 2010-02-18 22:48

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Quote:

Originally Posted by hartti (Post 535509)
@noobmonkey, how do you get the maemo firmware version number?

I tried os.uname() but it does not seem to return it and os.name is no help either...

Hartti

I'm not noobmonkey, but "osso-product-info -q OSSO_PRODUCT_RELEASE_VERSION" returns it...

noobmonkey 2010-02-18 23:00

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Quote:

Originally Posted by qwerty12 (Post 535520)
I'm not noobmonkey, but "osso-product-info -q OSSO_PRODUCT_RELEASE_VERSION" returns it...

Qwerty, you really are a fountain of knowledge :D :D

I didnt know that (Bearing in mind i have 2 weeks of linux, and one week of python, i'd go with qwerty!)

I used a completely different, longer approach lol......

Code:

var_l_MaemoV = os.popen('dpkg -l "mp-fremantle-*"').read()
self.lbl_Maemo_Ver_Info.setText(var_l_MaemoV.strip()[-15:])


qwerty12 2010-02-18 23:03

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Quote:

Originally Posted by noobmonkey (Post 535535)
I didnt know that (Bearing in mind i have 2 weeks of linux, and one week of python, i'd go with qwerty!)

FWIW, I'm a Windows person :p

noobmonkey 2010-02-18 23:06

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Quote:

Originally Posted by qwerty12 (Post 535543)
FWIW, I'm a Windows person :p

Pen and paper rules lol ;)

hehe me too, but python i'm understanding :) - well, except for some lack of documentation issues, if i can't find the obvious answer, i'll hunt terminal for my answer.... :) (Googling terminal commands is soooo much easier then pymaemo stuff!!)

hartti 2010-02-18 23:32

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Ok. Calling that through os.popen() seems to work. Cool.
(I was expecting there to be a python module for getting this without command line stuff :-)

Thanks qwerty12!

Hartti


| Prev |   3     4   5   6     7   15 | Next | Last
All times are GMT. The time now is 19:33.

vBulletin® Version 3.8.8