From 8f52c9d5357d7522cf518f5146870e4786216798 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Wed, 11 Dec 2019 15:10:42 -0500 Subject: Improve button about --- hypervideo_gui.py | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/hypervideo_gui.py b/hypervideo_gui.py index 599cdbe..1c6f3be 100644 --- a/hypervideo_gui.py +++ b/hypervideo_gui.py @@ -63,15 +63,6 @@ class App(QMainWindow): self.initUI() - def on_button_clicked(self): - msg = QMessageBox() - msg.setWindowTitle('About us') - msg.setText("

Written with Python3 and PyQt5
" - "Version: %s
License: %s

" % (__version__, __license__)) - msg.setIcon(QMessageBox.Information) - - x = msg.exec_() - def initUI(self): self.setWindowTitle('Simple Hypervideo Downloader GUI') self.setGeometry(self.left, self.top, self.width, self.height) @@ -145,6 +136,18 @@ class App(QMainWindow): self.show() + def on_button_clicked(self): + """ button about """ + msg = QMessageBox() + + msg.setWindowTitle('About us') + msg.setText("

Written with Python3 and PyQt5
" + "Version: %s
License: %s

" % (__version__, __license__)) + msg.setIcon(QMessageBox.Information) + self.show() + + msg.exec_() + def url_entry(self): ''' Return URL EntryText''' url = self.urlEntryText.text() -- cgit v1.2.3