12 lines
408 B
Python
12 lines
408 B
Python
from .. import import_it
|
|
from .. import major
|
|
|
|
QtDesigner = import_it("PyQt", "QtDesigner")
|
|
|
|
|
|
class RedPlugin(QtDesigner.QPyDesignerCustomWidgetPlugin):
|
|
# https://wiki.python.org/moin/PyQt/Using_Python_Custom_Widgets_in_Qt_Designer
|
|
|
|
def __init__(self):
|
|
raise Exception('This exception is being intentionally raised to demonstrate the pyqt{}-tools exception dialog.'.format(major))
|