def update_interface(self): if self.notebook.is_loaded() == True: self.check_sim_exists.set_dir(get_sim_path()) help_window().help_set_help([ "media-playback-start", _("<big><b>Now run the simulation</b></big><br> Click on the play icon to start a simulation." ) ]) if enable_betafeatures() == True: self.ribbon.simulations.qe.setVisible(True) else: self.check_sim_exists.set_dir("") help_window().help_set_help([ "icon.png", _("<big><b>Hi!</b></big><br> I'm the on-line help system :). If you have any questions or find any bugs please send them to <a href=\"mailto:" + get_email() + "\">" + get_email() + "</a>."), "document-new.png", _("Click on the new icon to make a new simulation directory.") ]) language_advert() if enable_betafeatures() == True: self.ribbon.simulations.qe.setVisible(True)
def update_interface(self): if self.notebook.load()==True: #self.ti_light.connect('refresh', self.notebook.main_tab.update) self.check_sim_exists.set_dir(get_sim_path()) self.ribbon.home.setEnabled(True) self.ribbon.simulations.setEnabled(True) #self.save_sim.setEnabled(True) #self.ribbon.device.setEnabled(True) help_window().help_set_help(["media-playback-start",_("<big><b>Now run the simulation</b></big><br> Click on the play icon to start a simulation.")]) self.ribbon.home_export.setEnabled(True) #self.menu_import_lib.setEnabled(True) self.ribbon.configure.setEnabled(True) self.ribbon.goto_page(_("Home")) if enable_betafeatures()==True: self.ribbon.simulations.qe.setVisible(True) else: self.check_sim_exists.set_dir("") self.ribbon.home.setEnabled(False) self.ribbon.simulations.setEnabled(False) #self.ribbon.device.setEnabled(False) self.ribbon.goto_page(_("File")) help_window().help_set_help(["icon.png",_("<big><b>Hi!</b></big><br> I'm the on-line help system :). If you find any bugs please report them to <a href=\"mailto:[email protected]\">[email protected]</a>."),"document-new.png",_("Click on the new icon to make a new simulation directory.")]) language_advert() self.ribbon.home_export.setEnabled(False) self.ribbon.configure.setEnabled(False) if enable_betafeatures()==True: self.ribbon.simulations.qe.setVisible(True)