first commit
This commit is contained in:
commit
677a836569
29 files changed
+1785
No files matched your search
@@ -0,0 +1,30 @@
|
||||
import sys
|
||||
from PyQt5.QtCore import QUrl
|
||||
from PyQt5.QtWidgets import QApplication, QMainWindow, QVBoxLayout, QWidget
|
||||
from PyQt5.QtWebEngineWidgets import QWebEngineView
|
||||
|
||||
class WebBrowserWindow(QMainWindow):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
|
||||
self.browser = QWebEngineView()
|
||||
self.browser.setUrl(QUrl("https://www.qq.com")) # 设置要打开的网页
|
||||
|
||||
layout = QVBoxLayout()
|
||||
layout.addWidget(self.browser)
|
||||
|
||||
central_widget = QWidget()
|
||||
central_widget.setLayout(layout)
|
||||
|
||||
self.setCentralWidget(central_widget)
|
||||
self.setWindowTitle("Web Browser")
|
||||
self.setGeometry(100, 100, 800, 600)
|
||||
|
||||
def main():
|
||||
app = QApplication(sys.argv)
|
||||
window = WebBrowserWindow()
|
||||
window.show()
|
||||
sys.exit(app.exec_())
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,2 @@
|
||||
SELECT *, ABS(TIMESTAMPDIFF(MINUTE , started_at, finished_at)) AS durning from tasks
|
||||
|
||||
Reference in new issue
Block a user