-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaddmodui.py
More file actions
28 lines (25 loc) · 776 Bytes
/
addmodui.py
File metadata and controls
28 lines (25 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import os
import sys
from mainwindowfunc import * # Contains our functionality so we can read this file properly
from constants import * # Contains our paths
from PyQt6 import uic
from PyQt6.QtWidgets import QDialog
class AddModWindow(QDialog):
def __init__(self):
super().__init__()
# Load file
uic.loadUi(os.path.join(UI_FOLDER_PATH, 'addnewmod.ui'), self)
# def accept(self):
# if not self.modTitleBox.toPlainText():
# print("Here")
# self.reject()
# else:
# print("There")
# return
# event.accept()
# def reject(self):
# pass
# if not self.modTitleBox.toPlainText():
# event.ignore()
# else:
# event.accept()