|
2010-02-18
, 21:43
|
Posts: 547 |
Thanked: 1,383 times |
Joined on Sep 2009
@ Stockholm, Sweden
|
#2
|
The Following User Says Thank You to frals For This Useful Post: | ||
|
2010-02-18
, 21:44
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#3
|
Is the problem that the dialog doesn't go away automatically? Just call dialog.destroy() at the end
|
2010-02-18
, 21:51
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#4
|
|
2010-02-18
, 23:01
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#5
|
The Following User Says Thank You to qwerty12 For This Useful Post: | ||
|
2010-02-18
, 23:10
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#6
|
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)
dialog.show_all() hildon.hildon_gtk_window_set_progress_indicator(dialog, 1) dialog.run()
|
2010-02-18
, 23:20
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#7
|
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.
Should i just be using show_all OR .run, and not both?Code:dialog.show_all() hildon.hildon_gtk_window_set_progress_indicator(dialog, 1) dialog.run()
The Following User Says Thank You to qwerty12 For This Useful Post: | ||
|
2010-02-18
, 23:25
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#8
|
Comment out dialog.run() (and dialog.destroy() if you have it) and see if it works with show_all. I have a feeling it won't, however - it requires the GTK main loop to be running (dunno if Qt plays nice with it, though; so it may work). That said, creating a GTK dialog does seem a little convoluted
Why not just do what SiB does and create a progress bar in a Qt dialog?
|
2010-02-19
, 22:20
|
Posts: 324 |
Thanked: 371 times |
Joined on Dec 2009
@ Vancouver, BC
|
#9
|
The Following 2 Users Say Thank You to Slocan For This Useful Post: | ||
Tags |
code, hildon, indicator, progress, python |
Thread Tools | |
|
Hi everyone, could do with a little developer help please.
In my app i have an update button, when this presses i have about 5-8 seconds of updates that happen.
I have found a method that i like, but can't quite get it to work as i thought it should. Could someone please give me a few pointers?
The indicator box looks good and works well, but the user needs to click to get rid of it. I was hoping that the indicator would load up, let the code run, and then vanish when complete.
Am i doing something wrong?
----------- 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? -