View Single Post
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#6
Originally Posted by qwerty12 View Post
Is this for your Qt app? Although that function for the progress wheel is Hildon specific, what it does to display that wheel is not. I don't know Qt, so I'm asking: Does PyQt have functions for allowing you to manipulate windows' properties (http://en.wikipedia.org/wiki/X_Windo...d_properties)?

Also, if this dialog has nothing in it except for the wheel and title, why not use http://pymaemo.garage.maemo.org/pyth...ts.html#banner and the progress stuff it provides? It's asynchronous, allows you to set a timeout and you can destroy it at any time. I know it says it's not recommended anymore but it does look prettier than a dialog that has only a title and a wheel, IMHO. (Alternatively,just make the dialog you're already using async. - use dialog.show[all]() instead of dialog.run() and you can then destroy the dialog from another function when you've finished updating)

erm i cheated - as i didnt like the QT solution

I created a GTK Dialog, and pinched the GTK_Hildon message box to do it, to my shocker the box works, just not the dissapearing bit :P (all on top of the QT solution.... meh, it works!)

Tried the banner all morning, it never worked for me :P - but yes that would also work


In the last bit you said one or the other, in my example code - i have both, ie.
Code:
dialog.show_all()
        hildon.hildon_gtk_window_set_progress_indicator(dialog, 1)
        dialog.run()
Should i just be using show_all OR .run, and not both?
__________________
----------- 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? -