Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

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

    Reply
    Page 5 of 20 | Prev |   3     4   5   6     7   15 | Next | Last
    noobmonkey | # 41 | 2010-02-17, 23:27 | Report

    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!!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    fatalsaint | # 42 | 2010-02-17, 23:29 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to fatalsaint For This Useful Post:
    noobmonkey

     
    noobmonkey | # 43 | 2010-02-17, 23:52 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    noobmonkey | # 44 | 2010-02-18, 11:16 | Report

    changed the latest version a little bit.

    made everything smaller and neater.
    added maemo firmware version.

    Edit | Forward | Quote | Quick Reply | Thanks
    Attached Images
       

     
    hartti | # 45 | 2010-02-18, 22:41 | Report

    @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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    qwerty12 | # 46 | 2010-02-18, 22:48 | Report

    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...

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to qwerty12 For This Useful Post:
    hartti, noobmonkey

     
    noobmonkey | # 47 | 2010-02-18, 23:00 | Report

    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:])

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to noobmonkey For This Useful Post:
    qwerty12

     
    qwerty12 | # 48 | 2010-02-18, 23:03 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to qwerty12 For This Useful Post:
    noobmonkey

     
    noobmonkey | # 49 | 2010-02-18, 23:06 | Report

    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!!)

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to noobmonkey For This Useful Post:
    qwerty12

     
    hartti | # 50 | 2010-02-18, 23:32 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 5 of 20 | Prev |   3     4   5   6     7   15 | Next | Last
vBulletin® Version 3.8.8
Normal Logout