diff options
author | Jesús <heckyel@hyperbola.info> | 2019-12-11 15:10:42 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-12-11 15:10:42 -0500 |
commit | 8f52c9d5357d7522cf518f5146870e4786216798 (patch) | |
tree | b7302e0362ff7d111df7e74f57e0ae3f3afcd338 | |
parent | 85fde89c2c13f8db8e054ca331983b55046726c7 (diff) | |
download | hypervideo-gui-8f52c9d5357d7522cf518f5146870e4786216798.tar.lz hypervideo-gui-8f52c9d5357d7522cf518f5146870e4786216798.tar.xz hypervideo-gui-8f52c9d5357d7522cf518f5146870e4786216798.zip |
Improve button about
-rw-r--r-- | hypervideo_gui.py | 21 |
1 files 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("<p align='center'>Written with Python3 and PyQt5<br>" - "Version: %s <br> License: %s </p>" % (__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("<p align='center'>Written with Python3 and PyQt5<br>" + "Version: %s <br> License: %s </p>" % (__version__, __license__)) + msg.setIcon(QMessageBox.Information) + self.show() + + msg.exec_() + def url_entry(self): ''' Return URL EntryText''' url = self.urlEntryText.text() |