1
0
Fork 0
mirror of synced 2024-06-26 18:20:50 +12:00
Rare/rare/components/tabs/settings/debug.py

17 lines
542 B
Python

from PyQt5.QtWidgets import QWidget, QVBoxLayout, QPushButton
class DebugSettings(QWidget):
def __init__(self):
super(DebugSettings, self).__init__()
self.setLayout(QVBoxLayout())
self.raise_runtime_exception_button = QPushButton("Raise Exception")
self.layout().addWidget(self.raise_runtime_exception_button)
self.raise_runtime_exception_button.clicked.connect(self.raise_exception)
self.layout().addStretch(1)
def raise_exception(self):
raise RuntimeError("Debug Crash")