28 lines
486 B
Python
28 lines
486 B
Python
from PySide6.QtWidgets import QWidget, QApplication, QFileDialog
|
|
from Ui_寻找空闲题号 import Ui_Form
|
|
from database_tools_2 import *
|
|
|
|
|
|
class MyWindow(QWidget,Ui_Form):
|
|
def __init__(self):
|
|
super().__init__()
|
|
self.setupUi(self)
|
|
self.ShowAvailable()
|
|
|
|
|
|
|
|
def ShowAvailable(self):
|
|
self.label_Available.setText(spareIDs())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
app = QApplication([])
|
|
windows = MyWindow()
|
|
windows.show()
|
|
app.exec()
|
|
|