From 5a7b30fc015b8da0651680b4016af9cbe4c50e2f Mon Sep 17 00:00:00 2001 From: Taka Date: Fri, 5 May 2017 04:32:57 +0000 Subject: [PATCH] Added a link to the FAQ to analyze error messages. --- README.md | 2 +- constants.py | 2 +- startup_widget.py | 6 +++++- ui/about_widget.ui | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 23ea418..e95aca6 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ However, unless you print them out, it's difficult to quickly switch between the To run from source, you need Python 3, and some requirements: ``` pip install -r requirements.txt -pip install -r asl-cards/requirements.txt +pip install -r asl_cards/requirements.txt python3 main.py ``` diff --git a/constants.py b/constants.py index ca929c3..e41f23d 100644 --- a/constants.py +++ b/constants.py @@ -1,5 +1,5 @@ APP_VENDOR = "Pacman Ghost" -APP_HOME_URL = "https://github.com/pacman-ghost" +APP_HOME_URL = "https://github.com/pacman-ghost/aslcards" APP_NAME = "ASL Cards" APP_VERSION = "v0.1" APP_DESCRIPTION = "ASL Cards viewer." diff --git a/startup_widget.py b/startup_widget.py index 922095d..8276f9e 100644 --- a/startup_widget.py +++ b/startup_widget.py @@ -235,6 +235,10 @@ class StartupWidget( QWidget ) : @pyqtSlot( str ) def on_error( self , msg ) : """Show an error message box.""" + msg = " {}".format( msg ) \ + + "

Check here if you're having trouble analyzing your files." \ + + " " + msg = msg.replace( "\n" , "
\n" ) MainWindow.show_error_msg( msg ) @pyqtSlot( str , QMessageBox.StandardButtons , QMessageBox.StandardButton , result=QMessageBox.StandardButton ) @@ -260,7 +264,7 @@ class StartupWidget( QWidget ) : self.progress_animation.stop() # check if the analysis failed if ex : - MainWindow.show_error_msg( "Analyze failed:\n\n{}".format( ex ) ) + self.on_error( "Analyze failed:\n\n{}".format( ex ) ) self._update_analyze_ui( True ) self.frm_analyze_progress.hide() self.le_cards_dir.setFocus() diff --git a/ui/about_widget.ui b/ui/about_widget.ui index cc381e8..e9a9c3f 100644 --- a/ui/about_widget.ui +++ b/ui/about_widget.ui @@ -108,7 +108,7 @@ - <html> Source code is available <a href="https://github.com/pacman-ghost/asl_cards">here</a>. </html> + <html> Source code is available <a href="https://github.com/pacman-ghost/aslcards">here</a>. </html> true