Ejemplo n.º 1
0
 def btnhelp_clicked(self, widget, data):
     step = self.steps.get_step_by_id(self.curstep)
     if hasattr(step, 'get_help'):
         help = step.get_help()
         if os.path.exists(help):
             with open(help) as f:
                 content = f.read()
         else:
             content = help
     else:
         content = _('This page has no help information.')
     box = magichelp_popup()
     tv = box.id_map['msg'].tv
     tv.get_buffer().set_text(content)
Ejemplo n.º 2
0
 def btnhelp_clicked(self, widget, data):
     step = self.steps.get_step_by_id(self.curstep)
     if hasattr(step, 'get_help'):
         help = step.get_help()
         if os.path.exists(help):
             with open(help) as f:
                 content = f.read()
         else:
             content = help
     else:
         content = _('This page has no help information.')
     box = magichelp_popup()
     tv = box.id_map['msg'].tv
     tv.get_buffer().set_text(content)
Ejemplo n.º 3
0
 def default_btnhelp_clicked(self, widget, data, filename):
     magicpopup.magichelp_popup(filename)
Ejemplo n.º 4
0
 def help_gamebox(self, name):
     if name == 'xglines':
         magicpopup.magichelp_popup(_('helptext/games.xglines.en.txt'))
Ejemplo n.º 5
0
 def default_btnhelp_clicked(self, widget, data, filename):
     magicpopup.magichelp_popup(filename)
Ejemplo n.º 6
0
 def help_gamebox(self, name):
     if name == 'xglines':
         magicpopup.magichelp_popup(_('helptext/games.xglines.en.txt'))