dialog.set_transient_for(window)
dialog.set_title("Settings")
-
-
vbox = dialog.vbox
acctsLabel = gtk.Label("Accounts:")
self.win = hildon.Window()
self.win.connect("destroy", self.controller.quit)
self.win.show_all()
- progress_bar = hildon.hildon_banner_show_progress(self.win, None, "Loading overview...")
- progress_bar.set_fraction(0.4)
+
+ # wait notification start --danny
# Create menu
menu = self.create_menu(self.win)
self.win.add_with_scrollbar(treeview)
self.win.show_all()
- progress_bar.set_fraction(1)
- progress_bar.destroy()
+ # wait notification end --danny
def add_columns_to_treeview(self, treeview):
#Column 0 for the treeview
treeview.append_column(column)
def refresh_clicked(self, button):
- progress_bar = hildon.hildon_banner_show_progress(self.win, None, "Loading characters...")
- progress_bar.set_fraction(1)
self.char_model.get_characters()
- progress_bar.destroy()
-
+ # wait notification end --danny
def do_charactersheet(self, treeview, path, view_column):
self.build_window()
-
def build_window(self):
# TODO: this is a really long and ugly function, split it up somehow
self.win = hildon.Window()
- progress_bar = hildon.hildon_banner_show_progress(self.win, None, "Loading character sheet...")
-
self.win.show_all()
- progress_bar.set_fraction(0.4)
+
+ # wait notification start --danny
# Create menu
# NOTE: we probably want a window-specific menu for this page, but the
self.win.add_with_scrollbar(vbox)
self.win.show_all()
- progress_bar.set_fraction(1)
- progress_bar.destroy()
+ # wait notification end --danny
# diablo doesnt have a glib module, but gobject module seems to have
# the same functions...
def refresh_clicked(self, button):
- progress_bar = hildon.hildon_banner_show_progress(self.win, None, "Loading overview...")
- progress_bar.set_fraction(1)
self.skills_model.get_skills()
- progress_bar.destroy()
-
+ # wait notification end --danny
def update_live_sp(self):
self.live_sp_val = self.live_sp_val + self.spps * (self.UPDATE_INTERVAL / 1000)