Skip to content

Commit

Permalink
Update resolution settings
Browse files Browse the repository at this point in the history
  • Loading branch information
severinsimmler committed Apr 19, 2018
1 parent 1b91703 commit dde9332
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions application/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ def provide_gui(application):
"""
title = 'Topics Explorer'
icon = str(pathlib.Path('application', 'static', 'img', 'page_icon.png'))
width = 1200
height = 660

qtapp = PyQt5.QtWidgets.QApplication(sys.argv)

Expand All @@ -47,14 +45,14 @@ def provide_gui(application):

def download_requested(item):
path = PyQt5.QtWidgets.QFileDialog.getSaveFileName(None,
"Select destination folder and file name",
"",
"Zip files (*.zip)")[0]
'Select destination folder and file name',
'',
'Zip files (*.zip)')[0]
item.setPath('{path}.{ext}'.format(path=path, ext='zip'))
item.accept()

webview.page().profile().downloadRequested.connect(download_requested)
webview.resize(size.width() - 50, size.height() - 100)
webview.resize(size.width() - 80, size.height() - 150)
webview.setWindowTitle(title)
webview.setWindowIcon(PyQt5.QtGui.QIcon(icon))

Expand Down

0 comments on commit dde9332

Please sign in to comment.