synchronization inspirations between entries and inspirations list
This commit is contained in:
@ -2,9 +2,17 @@
|
||||
Simple UI helpers with PyQt
|
||||
"""
|
||||
|
||||
import sys
|
||||
from PyQt5 import QtCore, QtGui, QtWidgets
|
||||
|
||||
|
||||
def exception_hook(type, value, traceback):
|
||||
"""
|
||||
Use sys.__excepthook__, the standard hook.
|
||||
"""
|
||||
sys.__excepthook__(type, value, traceback)
|
||||
|
||||
|
||||
def run_simple_button_app(title, actions):
|
||||
"""
|
||||
|
||||
@ -12,6 +20,9 @@ def run_simple_button_app(title, actions):
|
||||
:param actions:
|
||||
:return:
|
||||
"""
|
||||
# fix PyQt5 eating exceptions (see http://stackoverflow.com/q/14493081/1536976)
|
||||
sys.excepthook = exception_hook
|
||||
|
||||
# create app
|
||||
app = QtWidgets.QApplication([])
|
||||
|
||||
|
Reference in New Issue
Block a user