def __init__(self, controlState, xml): alignment = xml.get_widget("WelcomeEventBox") alignment.modify_bg(gtk.STATE_NORMAL, alignment.get_colormap().alloc_color('white')) controlState.backButtonEnabled = False controlState.displayBanner = False if media.needsToBeChecked(): self.progressDialog = \ ProgressWindowTaskListener(None, \ 'Verifying Media', \ 'Verifying media ... please wait.', ['brandiso.calc_md5'], ) self.mediaCheckID = gobject.idle_add(self.startMediaCheck)
def activateNetwork(self, dialogOnSuccess=True): '''Try to activate the network. If there is a failure, pop up a very friendly warning dialog. return True if there were no exceptions, otherwise return False ''' self.progressDialog = ProgressWindowTaskListener( self.controlState.gui.getWindow(), 'Network Activation', 'Connecting to the network', ['network'], execute=False) # give the progress dialog a chance to paint before calling # long-running functions self.progressDialog.nonblockingRun() gobject.idle_add(self.activateNetwork2, dialogOnSuccess)