mirror of
https://github.com/lubuntu-team/lubuntu-about.git
synced 2025-07-04 19:41:28 +00:00
Add a basic Makefile and a working main.py file.
This commit is contained in:
parent
aaf08f05aa
commit
72e6cf75e5
8
src/Makefile
Normal file
8
src/Makefile
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
all:
|
||||||
|
pyuic5 main.ui -o aboutlubuntu_auto.py
|
||||||
|
pyrcc5 main.qrc -o main_rc.py
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rvf *_auto.py main_rc.py __pycache__
|
17
src/main.py
17
src/main.py
@ -19,18 +19,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import PyQt5.QtCore
|
from PyQt5.QtWidgets import QWidget, QApplication, QMainWindow
|
||||||
from PyQt5.QtWidgets import QApplication,QWidget
|
from aboutlubuntu_auto import Ui_MainWindow
|
||||||
from PyQt5.uic import loadUi
|
|
||||||
|
|
||||||
class LubuntuAbout(QWidget):
|
class LubuntuAbout(QMainWindow, Ui_MainWindow):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(LubuntuAbout, self).__init__()
|
super().__init__()
|
||||||
loadUi("main.ui", self)
|
self.ui = Ui_MainWindow()
|
||||||
self.setWindowTitle("About Lubuntu")
|
self.ui.setupUi(self)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
about = QApplication(sys.argv)
|
about = QApplication(sys.argv)
|
||||||
aboutwidget = LubuntuAbout()
|
aboutwindow = LubuntuAbout()
|
||||||
aboutwidget.show()
|
aboutwindow.show()
|
||||||
sys.exit(about.exec_())
|
sys.exit(about.exec_())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user