mirror of
https://github.com/brmlab/edubrm.git
synced 2025-06-08 21:03:59 +02:00
init
This commit is contained in:
commit
4937dbfde4
13 changed files with 169 additions and 0 deletions
23
software/main.py
Normal file
23
software/main.py
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
from PyQt4.QtCore import pyqtSlot
|
||||
from PyQt4.QtGui import QMainWindow
|
||||
from PyQt4.QtGui import QMessageBox
|
||||
from PyQt4.QtGui import QPixmap
|
||||
from mainUi import Ui_MainWindow
|
||||
|
||||
class Main(QMainWindow):
|
||||
def __init__(self):
|
||||
QMainWindow.__init__(self)
|
||||
self.ui = Ui_MainWindow()
|
||||
self.ui.setupUi(self)
|
||||
|
||||
@pyqtSlot()
|
||||
def on_actionExit_triggered(self):
|
||||
self.close()
|
||||
|
||||
@pyqtSlot()
|
||||
def on_actionAbout_triggered(self):
|
||||
box = QMessageBox(QMessageBox.NoIcon, "About EduBRM", "EduBRM by Hackerspace brmlab\n\nhttp://brmlab.cz/\n\nSee README for more information.", QMessageBox.Ok)
|
||||
box.setIconPixmap(QPixmap( ":/icons/icon.png"))
|
||||
box.exec_()
|
Loading…
Add table
Add a link
Reference in a new issue