def onBtnHelp(self, btn): """ Display a small help message box """ helpDlg = gui.help.HelpDlg(MOD_L10N) helpDlg.addSection(_('Description'), _('This module displays a small popup window on your desktop when a new track starts.')) helpDlg.addSection(_('Customizing the Notification'), _('You can change the title and the body of the notification to any text you want. Before displaying ' 'the popup window, fields of the form {field} are replaced by their corresponding value. ' 'Available fields are:\n\n') + track.getFormatSpecialFields(False)) helpDlg.addSection(_('Markup'), _('You can use the Pango markup language to format the text. More information on that language is ' 'available on the following web page:') + '\n\nhttp://www.pygtk.org/pygtk2reference/pango-markup-language.html') helpDlg.show(self.cfgWin)
def onHelp(self, btn): """ Display a small help message box """ helpDlg = gui.help.HelpDlg(MOD_L10N) helpDlg.addSection( _("Description"), _("This module generates a text file with regards to the track currently played.") ) helpDlg.addSection( _("Customizing the File"), _( "You can change the content of the file to any text you want. Before generating the file, " "fields of the form {field} are replaced by their corresponding value. " "Available fields are:\n\n" ) + track.getFormatSpecialFields(False), ) helpDlg.show(self.cfgWindow)