tirilane
/
egon
Archived
1
0
Fork 0

Need to find a good solution to the semester problem.

This commit is contained in:
Tiril Anette Langfeldt Rødland 2008-06-15 20:03:05 +00:00
parent d50b7af349
commit 3616dd3394
2 changed files with 4 additions and 12 deletions

BIN
egon.db

Binary file not shown.

14
egon.py
View File

@ -76,8 +76,8 @@ class MainWindow(QMainWindow):
self.calendarDockWidget.setWidget(self.calendarFrame) self.calendarDockWidget.setWidget(self.calendarFrame)
# Actions # Actions
fileNewAction = self.createAction("&New", self.fileNew, QKeySequence.New, "filenew", "Create a new plan") fileNewAction = self.createAction("&New", self.fileNew, QKeySequence.New, "filenew", "Create a new semester plan")
fileOpenAction = self.createAction("&Open", self.fileOpen, QKeySequence.Open, "fileopen", "Open an existing plan") fileOpenAction = self.createAction("&Open", self.fileOpen, QKeySequence.Open, "fileopen", "Open an existing semester plan")
fileSaveAction = self.createAction("&Save", self.fileSave, QKeySequence.Save, "filesave", "Save semester plan") fileSaveAction = self.createAction("&Save", self.fileSave, QKeySequence.Save, "filesave", "Save semester plan")
fileSaveAsAction = self.createAction("Save as...", self.fileSaveAs, None, "filesaveas", "Save plan as...") fileSaveAsAction = self.createAction("Save as...", self.fileSaveAs, None, "filesaveas", "Save plan as...")
filePrintAction = self.createAction("&Print", self.filePrint, QKeySequence.Print, "fileprint", "Print plan") filePrintAction = self.createAction("&Print", self.filePrint, QKeySequence.Print, "fileprint", "Print plan")
@ -273,7 +273,7 @@ class MainWindow(QMainWindow):
chosenDay = self.calendar chosenDay = self.calendar
def fileNew(self): def fileNew(self):
model = Model() pass
def fileOpen(self): def fileOpen(self):
pass pass
@ -319,14 +319,6 @@ class MainWindow(QMainWindow):
pass pass
class Model:
def __init__(self, parent=None):
self.assignmentModel = AssignmentModel()
self.readingModel = ReadingModel()
self.scheduleModel = ScheduleModel()
class AssignmentTab(QWidget): class AssignmentTab(QWidget):
def __init__(self, parent=None): def __init__(self, parent=None):