mirror of
https://github.com/lubuntu-team/lubuntu-about.git
synced 2025-07-15 08:51: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 PyQt5.QtCore
|
||||
from PyQt5.QtWidgets import QApplication,QWidget
|
||||
from PyQt5.uic import loadUi
|
||||
from PyQt5.QtWidgets import QWidget, QApplication, QMainWindow
|
||||
from aboutlubuntu_auto import Ui_MainWindow
|
||||
|
||||
class LubuntuAbout(QWidget):
|
||||
class LubuntuAbout(QMainWindow, Ui_MainWindow):
|
||||
def __init__(self):
|
||||
super(LubuntuAbout, self).__init__()
|
||||
loadUi("main.ui", self)
|
||||
self.setWindowTitle("About Lubuntu")
|
||||
super().__init__()
|
||||
self.ui = Ui_MainWindow()
|
||||
self.ui.setupUi(self)
|
||||
|
||||
if __name__ == "__main__":
|
||||
about = QApplication(sys.argv)
|
||||
aboutwidget = LubuntuAbout()
|
||||
aboutwidget.show()
|
||||
aboutwindow = LubuntuAbout()
|
||||
aboutwindow.show()
|
||||
sys.exit(about.exec_())
|
||||
|
Loading…
x
Reference in New Issue
Block a user