67 lines
1.3 KiB
Python
67 lines
1.3 KiB
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 scheduleDlg import *
|
|
|
|
class AssignmentModel():
|
|
|
|
date = ""
|
|
course = ""
|
|
description = ""
|
|
available = False
|
|
begun = False
|
|
finished = False
|
|
delivered = False
|
|
|
|
def setDate(self, date):
|
|
self.date = date
|
|
|
|
def getDate(self):
|
|
return self.date
|
|
|
|
def setCourse(self, course):
|
|
self.course = course
|
|
|
|
def getCourse(self):
|
|
return self.course
|
|
|
|
def setDescription(self, description):
|
|
self.description = description
|
|
|
|
def getDescription(self):
|
|
return self.description
|
|
|
|
def setAvailable(self, available):
|
|
self.available = available
|
|
|
|
def getAvailable(self):
|
|
return self.available
|
|
|
|
def setBegun(self, begun):
|
|
self.begun = begun
|
|
|
|
def getBegun(self):
|
|
return self.begun
|
|
|
|
def setFinished(self, finished):
|
|
self.finished = finished
|
|
|
|
def getFinished(self):
|
|
return self.finished
|
|
|
|
def setDelivered(self, delivered):
|
|
self.delivered = delivered
|
|
|
|
def getDelivered(self):
|
|
return self.delivered
|
|
|