28 lines
761 B
Python
28 lines
761 B
Python
|
#!/usr/bin/env python
|
||
|
#coding: utf-8
|
||
|
|
||
|
import os
|
||
|
import platform
|
||
|
import sys
|
||
|
from PyQt4.QtCore import *
|
||
|
from PyQt4.QtGui import *
|
||
|
from assignment import *
|
||
|
from reading import *
|
||
|
from schedule import *
|
||
|
from calendar import *
|
||
|
from readingDlg import *
|
||
|
|
||
|
class AddReadingDlg(ReadingDlg):
|
||
|
|
||
|
def __init__(self, parent=None):
|
||
|
super(AddReadingDlg, self).__init__(parent)
|
||
|
|
||
|
buttonBox = QDialogButtonBox(QDialogButtonBox.Ok|QDialogButtonBox.Cancel)
|
||
|
|
||
|
self.layout.addWidget(buttonBox, 6, 0, 1, 2)
|
||
|
|
||
|
self.connect(buttonBox, SIGNAL("accepted()"), self, SLOT("accept()"))
|
||
|
self.connect(buttonBox, SIGNAL("rejected()"), self, SLOT("reject()"))
|
||
|
|
||
|
self.setWindowTitle(self.trUtf8("Add new reading"))
|