View Single Post
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#1
(Edit - sorry thread title should have probably said Hildon GTK....)

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?

Code:
        dialog = gtk.Dialog()
        dialog.set_title("Updating... please wait")
        dialog.show_all()
        hildon.hildon_gtk_window_set_progress_indicator(dialog, 1)
        dialog.run()

<<todo code >>

        hildon.hildon_gtk_window_set_progress_indicator(dialog, 0)
__________________
----------- 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? -