Skip to content

Commit 33caef4

Browse files
authored
Add files via upload
1 parent 5e2e6a7 commit 33caef4

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

pytron/__init__.py

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import sys
2+
from PyQt5.QtWidgets import *
3+
from PyQt5.QtCore import *
4+
from PyQt5.QtWebEngineWidgets import *
5+
6+
app = QApplication(sys.argv)
7+
TITLE = ''
8+
htmlFile = ''
9+
server = ''
10+
handler = 'file:///'
11+
12+
13+
class BrowserWindow(QMainWindow):
14+
def __init__(self, *args, **kwargs):
15+
super(BrowserWindow, self).__init__(*args, **kwargs)
16+
self.setWindowTitle(TITLE)
17+
self.browser = QWebEngineView()
18+
self.browser.setUrl(QUrl(htmlFile))
19+
self.setCentralWidget(self.browser)
20+
21+
def server_view(self):
22+
self.browser.setUrl(QUrl(server))
23+
self.setCentralWidget(self.browser)
1.03 KB
Binary file not shown.

setup.py

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from setuptools import setup
2+
3+
l_d = '''
4+
Electron is a technology developed by https://www.github.com/ . Which you can use
5+
to render html5 and javascript as a desktop app . But it uses node js . I have used
6+
PyQt5 for the shell and it is written with pure python so enjoy . For documentation visit
7+
http://github.com/nishowsan/python-electron .
8+
'''
9+
10+
setup(name='pytron',
11+
version='1.0',
12+
description='Make desktop app with html5 and JS using python and pytron',
13+
long_description=l_d,
14+
url='http://github.com/nishowsan/python-electron',
15+
author='Adib Mohsin',
16+
author_email='[email protected]',
17+
license='MIT',
18+
packages=['pytron'],
19+
requires= ['pyqt5'],
20+
zip_safe=False)

0 commit comments

Comments
 (0)