You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.4 KiB
49 lines
1.4 KiB
3 years ago
|
# -*- coding: utf-8 -*-
|
||
|
#
|
||
3 years ago
|
# devtools.py
|
||
3 years ago
|
#
|
||
3 years ago
|
# Copyright © 2016-2017 Antergos
|
||
3 years ago
|
#
|
||
3 years ago
|
# This file is part of Web Greeter.
|
||
3 years ago
|
#
|
||
3 years ago
|
# Web Greeter is free software; you can redistribute it and/or modify
|
||
|
# it under the terms of the GNU General Public License as published by
|
||
|
# the Free Software Foundation; either version 3 of the License, or
|
||
|
# (at your option) any later version.
|
||
3 years ago
|
#
|
||
3 years ago
|
# Web Greeter is distributed in the hope that it will be useful,
|
||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
# GNU General Public License for more details.
|
||
3 years ago
|
#
|
||
3 years ago
|
# The following additional terms are in effect as per Section 7 of the license:
|
||
3 years ago
|
#
|
||
3 years ago
|
# The preservation of all legal notices and author attributions in
|
||
|
# the material or in the Appropriate Legal Notices displayed
|
||
|
# by works containing it is required.
|
||
3 years ago
|
#
|
||
3 years ago
|
# You should have received a copy of the GNU General Public License
|
||
|
# along with Web Greeter; If not, see <http://www.gnu.org/licenses/>.
|
||
3 years ago
|
|
||
|
# 3rd-Party Libs
|
||
|
from PyQt5.QtCore import QUrl
|
||
|
from PyQt5.QtWebEngineWidgets import (
|
||
|
QWebEngineView,
|
||
|
QWebEnginePage,
|
||
|
)
|
||
|
|
||
3 years ago
|
from logger import logger
|
||
|
|
||
3 years ago
|
class DevTools:
|
||
|
|
||
|
def __init__(self):
|
||
|
super().__init__()
|
||
|
|
||
|
self.view = QWebEngineView()
|
||
|
self.page = self.view.page() # type: QWebEnginePage
|
||
|
|
||
|
self.view.load(QUrl('http://127.0.0.1:12345'))
|
||
|
self.view.show()
|
||
3 years ago
|
logger.debug("DevTools initialized")
|
||
3 years ago
|
|