Active Topics

 


Reply
Thread Tools
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#41
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!!
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#42
Originally Posted by noobmonkey View Post
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.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 

The Following User Says Thank You to fatalsaint For This Useful Post:
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#43
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.
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -
 
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#44
changed the latest version a little bit.

made everything smaller and neater.
added maemo firmware version.
Attached Images
   
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -
 
Posts: 77 | Thanked: 52 times | Joined on Sep 2009 @ US
#45
@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's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#46
Originally Posted by hartti View Post
@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...
 

The Following 2 Users Say Thank You to qwerty12 For This Useful Post:
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#47
Originally Posted by qwerty12 View Post
I'm not noobmonkey, but "osso-product-info -q OSSO_PRODUCT_RELEASE_VERSION" returns it...
Qwerty, you really are a fountain of knowledge

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:])
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -
 

The Following User Says Thank You to noobmonkey For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#48
Originally Posted by noobmonkey View Post
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
 

The Following User Says Thank You to qwerty12 For This Useful Post:
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#49
Originally Posted by qwerty12 View Post
FWIW, I'm a Windows person
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!!)
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -
 

The Following User Says Thank You to noobmonkey For This Useful Post:
Posts: 77 | Thanked: 52 times | Joined on Sep 2009 @ US
#50
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
 
Reply

Tags
code, health check, n900, python


 
Forum Jump


All times are GMT. The time now is 22:41.