-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmultiPhotoScanner.py
More file actions
32 lines (29 loc) · 915 Bytes
/
multiPhotoScanner.py
File metadata and controls
32 lines (29 loc) · 915 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
29
30
31
32
from PySide2.QtWidgets import QApplication, QMainWindow, QLineEdit, QVBoxLayout, QMenu, QListWidgetItem,\
QDialog, QDialogButtonBox, QLabel, QPushButton, QSlider, QListWidget, QMessageBox
from PySide2.QtUiTools import QUiLoader
from Scanner import Scanner
class MainWindow(QMainWindow):
"""
Main window class
"""
def __init__(self, app):
"""
MainWindow initialization
"""
super(MainWindow, self).__init__()
## app
self.app = app
## ui object
self.ui = QUiLoader().load("mainwindow.ui")
self.ui.show()
self.ui.setWindowTitle("multiPhotoScanner")
self.setMinimumHeight(100)
self.setMinimumWidth(250)
if __name__ == "__main__":
app = QApplication(sys.argv)
window = MainWindow(app)
app.exec_()
sys.exit()
scanner = Scanner()
scanner.list_devices()
scanner.list_sources()