Added a link to the FAQ to analyze error messages.

master
Pacman Ghost 7 years ago
parent fc0433862a
commit 5a7b30fc01
  1. 2
      README.md
  2. 2
      constants.py
  3. 6
      startup_widget.py
  4. 2
      ui/about_widget.ui

@ -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
```

@ -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."

@ -235,6 +235,10 @@ class StartupWidget( QWidget ) :
@pyqtSlot( str )
def on_error( self , msg ) :
"""Show an error message box."""
msg = "<html> {}".format( msg ) \
+ " <p>Check <a href='https://github.com/pacman-ghost/aslcards/#faq'>here</a> if you're having trouble analyzing your files." \
+ " </html>"
msg = msg.replace( "\n" , "<br>\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()

@ -108,7 +108,7 @@
</sizepolicy>
</property>
<property name="text">
<string>&lt;html&gt; Source code is available &lt;a href=&quot;https://github.com/pacman-ghost/asl_cards&quot;&gt;here&lt;/a&gt;. &lt;/html&gt;</string>
<string>&lt;html&gt; Source code is available &lt;a href=&quot;https://github.com/pacman-ghost/aslcards&quot;&gt;here&lt;/a&gt;. &lt;/html&gt;</string>
</property>
<property name="openExternalLinks">
<bool>true</bool>

Loading…
Cancel
Save