-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.py
31 lines (25 loc) · 841 Bytes
/
app.py
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
from Inventory import app
# import sys
# from PyQt5.QtCore import *
# from PyQt5.QtWebEngineWidgets import *
# from PyQt5.QtWidgets import QApplication
# from PyQt5 import QtGui
# from threading import Timer
import webbrowser
# Define function for QtWebEngine
# def ui(location):
# qt_app = QApplication(sys.argv)
# web = QWebEngineView()
# screen = qt_app.primaryScreen()
# size = screen.size()
# web.setWindowTitle("Inventory")
# web.resize(size.width(), size.height())
# web.setZoomFactor(1.5)
# web.setWindowIcon(QtGui.QIcon('logo.png'))
# web.load(QUrl(location))
# web.show()
# sys.exit(qt_app.exec_())
if __name__ == '__main__':
# Timer(1, lambda: ui("http://127.0.0.1:5000/")).start()
#webbrowser.open("http://127.0.0.1:5000/mainledger", new=1)
app.run(debug=True)