-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* closes #14 * Update README.md
- Loading branch information
Showing
7 changed files
with
59 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
__version__ = "0.1.0" | ||
__author__ = "Lola Rigaut-Luczak" | ||
__email__ = "[email protected]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
from PyQt5.QtWidgets import QWidget, QLabel, QVBoxLayout | ||
from PyQt5.QtCore import Qt | ||
|
||
from __init__ import __version__, __author__, __email__ | ||
|
||
class AboutWidget(QWidget): | ||
"""AboutWiget class""" | ||
|
||
def __init__(self): | ||
super().__init__() | ||
layout = QVBoxLayout() | ||
self.label = QLabel() | ||
self.label.setOpenExternalLinks(True) | ||
self.label.setTextFormat(Qt.RichText) | ||
self.label.setText( | ||
""" | ||
<center> | ||
<b>Airbnb Scanner</b><br/> | ||
Version v{version} | ||
<br/><br/> | ||
Created and maintained by {author} (<a href="mailto:{email}">{email}</a>). | ||
<br/><br/> | ||
</center> | ||
Source code : <a href="https://github.com/rllola/airbnb-scanner">https://github.com/rllola/airbnb-scanner</a><br/> | ||
Report and issue : <a href="https://github.com/rllola/airbnb-scanner/issues">https://github.com/rllola/airbnb-scanner/issues</a> <br/><br/> | ||
Under <a href="http://www.wtfpl.net/">Do What the Fuck You Want to Public License</a>. | ||
""".format(version=__version__, author=__author__, email=__email__) | ||
) | ||
layout.addWidget(self.label) | ||
self.setWindowTitle("About") | ||
self.setLayout(layout) | ||
|
||
def closeEvent(self, event): | ||
# Just hide the widget | ||
event.ignore() | ||
self.hide() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters