-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtemplatewindow.py
More file actions
23 lines (18 loc) · 793 Bytes
/
templatewindow.py
File metadata and controls
23 lines (18 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/python3
from PySide6.QtCore import QSize, Qt
from PySide6.QtWidgets import QApplication, QMainWindow, QPushButton, QToolBar, QVBoxLayout, QHBoxLayout, QWidget, QMenu
from PySide6.QtOpenGLWidgets import QOpenGLWidget
from PySide6.QtGui import QAction, QIcon, QCursor
from build import libpaxpython
from build import ui # pyuic autogenned .py scripts
# kill when ctrl-c is pressed (annoying when this doesnt work)
import signal
signal.signal(signal.SIGINT, signal.SIG_DFL) # apparently thats sig_default and it causes the 'default action' to be taken by the OS
class Template(QMainWindow):
def __init__(self, parent=None):
super().__init__(parent)
self.ui = ui.template.Ui_Template()
self.ui.setupUi(self)
self.setAttribute(Qt.WA_DeleteOnClose, True)
#
#