From 919b7c8b125762e4429e7d0b00f92fdeb10f02a9 Mon Sep 17 00:00:00 2001 From: tirilane Date: Thu, 29 May 2008 08:15:21 +0000 Subject: [PATCH] Forgot to add trunk. --- AssignmentTab.pyw | 33 +++++++++ CalendarTab.pyw | 21 ++++++ ReadingTab.pyw | 34 ++++++++++ ScheduleTab.pyw | 30 +++++++++ actions.py | 16 +++++ actions.pyc | Bin 0 -> 452 bytes addAssignmentDlg.py | 25 +++++++ addAssignmentDlg.pyc | Bin 0 -> 1157 bytes addBookDlg.py | 24 +++++++ addBookDlg.pyc | Bin 0 -> 1094 bytes addCourseDlg.py | 20 ++++++ addCourseDlg.pyc | Bin 0 -> 1087 bytes addReadingDlg.py | 27 ++++++++ addReadingDlg.pyc | Bin 0 -> 1210 bytes addScheduleDlg.py | 28 ++++++++ addScheduleDlg.pyc | Bin 0 -> 1215 bytes assignment.py | 50 ++++++++++++++ assignment.pyc | Bin 0 -> 1147 bytes assignmentDlg.py | 61 +++++++++++++++++ assignmentDlg.pyc | Bin 0 -> 2040 bytes assignmentModel.py | 66 ++++++++++++++++++ assignmentModel.pyc | Bin 0 -> 3059 bytes bookDlg.py | 50 ++++++++++++++ bookDlg.pyc | Bin 0 -> 1694 bytes calendar.py | 20 ++++++ calendar.pyc | Bin 0 -> 816 bytes courseDlg.py | 39 +++++++++++ courseDlg.pyc | Bin 0 -> 1348 bytes db.py | 151 ++++++++++++++++++++++++++++++++++++++++++ db.pyc | Bin 0 -> 4915 bytes editAssignmentDlg.py | 28 ++++++++ editAssignmentDlg.pyc | Bin 0 -> 1378 bytes editReadingDlg.py | 32 +++++++++ editReadingDlg.pyc | Bin 0 -> 1428 bytes editScheduleDlg.py | 31 +++++++++ editScheduleDlg.pyc | Bin 0 -> 1371 bytes 36 files changed, 786 insertions(+) create mode 100644 AssignmentTab.pyw create mode 100644 CalendarTab.pyw create mode 100644 ReadingTab.pyw create mode 100644 ScheduleTab.pyw create mode 100644 actions.py create mode 100644 actions.pyc create mode 100644 addAssignmentDlg.py create mode 100644 addAssignmentDlg.pyc create mode 100644 addBookDlg.py create mode 100644 addBookDlg.pyc create mode 100644 addCourseDlg.py create mode 100644 addCourseDlg.pyc create mode 100644 addReadingDlg.py create mode 100644 addReadingDlg.pyc create mode 100644 addScheduleDlg.py create mode 100644 addScheduleDlg.pyc create mode 100644 assignment.py create mode 100644 assignment.pyc create mode 100644 assignmentDlg.py create mode 100644 assignmentDlg.pyc create mode 100644 assignmentModel.py create mode 100644 assignmentModel.pyc create mode 100644 bookDlg.py create mode 100644 bookDlg.pyc create mode 100644 calendar.py create mode 100644 calendar.pyc create mode 100644 courseDlg.py create mode 100644 courseDlg.pyc create mode 100644 db.py create mode 100644 db.pyc create mode 100644 editAssignmentDlg.py create mode 100644 editAssignmentDlg.pyc create mode 100644 editReadingDlg.py create mode 100644 editReadingDlg.pyc create mode 100644 editScheduleDlg.py create mode 100644 editScheduleDlg.pyc diff --git a/AssignmentTab.pyw b/AssignmentTab.pyw new file mode 100644 index 0000000..0a7224e --- /dev/null +++ b/AssignmentTab.pyw @@ -0,0 +1,33 @@ +#!/usr/bin/env python +#coding: utf-8 + +import os +import platform +import sys +from PyQt4.QtCore import * +from PyQt4.QtGui import * + +class AssignmentTab(QWidget): + + def __init__(self, parent=None): + + super(AssignmentTab, self).__init__(parent) + + assignmentsTable = QTableWidget() + + addAssignmentButton = QPushButton("Add assignment") + editAssignmentButton = QPushButton("Edit assignment") + assignmentDoneButton = QPushButton("Done") + + vlayout = QVBoxLayout() + hlayout = QHBoxLayout() + + hlayout.addWidget(addAssignmentButton) + hlayout.addWidget(editAssignmentButton) + hlayout.addWidget(assignmentDoneButton) + + vlayout.addWidget(assignmentsTable) + vlayout.addLayout(hlayout) + + self.setLayout(vlayout) + diff --git a/CalendarTab.pyw b/CalendarTab.pyw new file mode 100644 index 0000000..dd0771b --- /dev/null +++ b/CalendarTab.pyw @@ -0,0 +1,21 @@ +#!/usr/bin/env python +#coding: utf-8 + +import os +import platform +import sys +from PyQt4.QtCore import * +from PyQt4.QtGui import * + +class CalendarTab(QWidget): + + def __init__(self, parent=None): + + super(CalendarTab, self).__init__(parent) + + calendar = QCalendarWidget() + + layout = QVBoxLayout() + layout.addWidget(calendar) + self.setLayout(layout) + diff --git a/ReadingTab.pyw b/ReadingTab.pyw new file mode 100644 index 0000000..057a309 --- /dev/null +++ b/ReadingTab.pyw @@ -0,0 +1,34 @@ +#!/usr/bin/env python +#coding: utf-8 + +import os +import platform +import sys +from PyQt4.QtCore import * +from PyQt4.QtGui import * + +class ReadingTab(QWidget): + + + def __init__(self, parent=None): + + super(ReadingTab, self).__init__(parent) + + readingTable = QTableWidget() + + addReadingButton = QPushButton("Add pages to read") + editReadingButton = QPushButton("Edit pages") + readingDoneButton = QPushButton("Done") + + vlayout = QVBoxLayout() + hlayout = QHBoxLayout() + + hlayout.addWidget(addReadingButton) + hlayout.addWidget(editReadingButton) + hlayout.addWidget(readingDoneButton) + + vlayout.addWidget(readingTable) + vlayout.addLayout(hlayout) + + self.setLayout(vlayout) + diff --git a/ScheduleTab.pyw b/ScheduleTab.pyw new file mode 100644 index 0000000..d7c3db4 --- /dev/null +++ b/ScheduleTab.pyw @@ -0,0 +1,30 @@ +#!/usr/bin/env python +#coding: utf-8 + +import os +import platform +import sys +from PyQt4.QtCore import * +from PyQt4.QtGui import * + +class ScheduleTab(QWidget): + + def __init__(self, parent=None): + + super(ScheduleTab, self).__init__(parent) + + scheduleTable = QTableWidget() + + addScheduleButton = QPushButton("Add lesson") + editScheduleButton = QPushButton("Edit lesson") + + vlayout = QVBoxLayout() + hlayout = QHBoxLayout() + + hlayout.addWidget(addScheduleButton) + hlayout.addWidget(editScheduleButton) + + vlayout.addWidget(scheduleTable) + vlayout.addLayout(hlayout) + + self.setLayout(vlayout) diff --git a/actions.py b/actions.py new file mode 100644 index 0000000..645f8b1 --- /dev/null +++ b/actions.py @@ -0,0 +1,16 @@ +#!/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 assignmentDlg import * +from readingDlg import * +from scheduleDlg import * + diff --git a/actions.pyc b/actions.pyc new file mode 100644 index 0000000000000000000000000000000000000000..987a56f73850ab9f44baa92b0b461d91a3cbca8e GIT binary patch literal 452 zcmZ9IzfQw25XSAa(2}+*kANbEdg+J|5=h+;6`itKiJMw+>?(I1vhqr-ybS|8F93H@ z<05?a=ig`D`QQ8ZBK`XKTo>Zh7BoN5fH#tox)ik#d1NVaIjkolPkK&7JrY~aCK^Y& zh;$ig5@{OgDpDG0MkK{+Hll0TA8OB;Bt(|mY|faF1i&dx2d8lt+6FltIzUc%={C4p zZtyX*24{a3)<=sec@1DI-x!ZLA=?^VT3_`WLa{gH(V5;9+8JN!7Ws3|MNh8kw>j0Z z_|%q2(qFMa{1 Cj$(EI literal 0 HcmV?d00001 diff --git a/addAssignmentDlg.py b/addAssignmentDlg.py new file mode 100644 index 0000000..05b3a41 --- /dev/null +++ b/addAssignmentDlg.py @@ -0,0 +1,25 @@ +#!/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 assignmentDlg import * + +class AddAssignmentDlg(AssignmentDlg): + + def __init__(self, parent=None): + super(AddAssignmentDlg, self).__init__(parent) + + buttonBox = QDialogButtonBox(QDialogButtonBox.Ok|QDialogButtonBox.Cancel) + + self.layout.addWidget(buttonBox, 7, 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 assignment")) + diff --git a/addAssignmentDlg.pyc b/addAssignmentDlg.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7d009f286f3a2a28f4c8fe64af9d524cd6429e30 GIT binary patch literal 1157 zcmb_bOKuZE5Um-1Vml5(2xY}0%4%Q{Z&C$_nh*^N zKcGQy9}j5|dOxH|iTZ+uS1!Ct;Z@<4Nbk@HKQ7Z9(TeE9peE&eQ3b8cFMPUD0GGwQ z;K#5hN}V`o#@SS7e3p(2njw;HEcX;fgCOd9UUwi^qN`pch(t^YtBQ4s<-WqOZ?Oc2 zkW5I+fK~woTq3-t>}`eGh$@~b)qNCPpkyzSNp#T}U9iZADxix)NG47aJ!7q+=dM<4v5{P^Kj~zX zTW^tjf*ce*$n@<&T*w;jAW)JRJH-T%MUYwd3}j*=B9~nT5&4 zguSwHmgv;GX}qw2)RBypx;AR8ndJtr5d&Z=-N#CA{!q6 zPDUmmJe+7;4I@$0>usGUGD~9~*?fxo3edu_fZr`H`Q_0ipW0mW?pB~PH=glk;w%&2 iZ1KPHkq4sqYw#Zq<8SBdwN`ILDJL>F19=+jC;Sat4)*W> literal 0 HcmV?d00001 diff --git a/addBookDlg.py b/addBookDlg.py new file mode 100644 index 0000000..73db51c --- /dev/null +++ b/addBookDlg.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python +#coding: utf-8 + +import os +import platform +import sys +from PyQt4.QtCore import * +from PyQt4.QtGui import * +from bookDlg import * + +class AddBookDlg(BookDlg): + + def __init__(self, parent=None): + super(AddBookDlg, self).__init__(parent) + + buttonBox = QDialogButtonBox(QDialogButtonBox.Ok|QDialogButtonBox.Cancel) + + self.layout.addWidget(buttonBox, 5, 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 book")) + diff --git a/addBookDlg.pyc b/addBookDlg.pyc new file mode 100644 index 0000000000000000000000000000000000000000..349be487e818544e5eb110b52f94ee1456352bf9 GIT binary patch literal 1094 zcmbtTOK;Oa5FT%yeIX90Ck~}215$J0zyTqeR*I0Slr}{b5t8M4H|-L~8+j*`Nad9N z7XAR@k8$My-)tVOID+jN&&xC4e!Kqub8G#{k6)dP7S|fyZy^37l*SX$kf^`1BkD)X zxT3xawxVH$&ZHVvb!F9HRmjw7fKRG)OEe?;&~Hf7UR=Wf`x{p`j$pE=XS@!*uXWqG z;bDHcf~62{L;NEs13>5)aNGh=g-(01RAizmkUHc5;=e(0Xnup~imalWh-MK*Tp>KR z8gz}?hJdO3d%o+)w*&c(_&lNyyZU^$ap65c2zePh&<<_NJj=-2(w8ta?%H`6m(r-LX$fT{{}>u-+*}Gwyt6s z9C&safTEi8dU# SS92m>3k`w3%}DNbxz!)(S>V_J literal 0 HcmV?d00001 diff --git a/addCourseDlg.py b/addCourseDlg.py new file mode 100644 index 0000000..8e2a2ed --- /dev/null +++ b/addCourseDlg.py @@ -0,0 +1,20 @@ +import platform +import sys +from PyQt4.QtCore import * +from PyQt4.QtGui import * +from courseDlg import * + +class AddCourseDlg(CourseDlg): + + def __init__(self, parent=None): + super(AddCourseDlg, self).__init__(parent) + + buttonBox = QDialogButtonBox(QDialogButtonBox.Ok|QDialogButtonBox.Cancel) + + self.layout.addWidget(buttonBox, 3, 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 course")) + diff --git a/addCourseDlg.pyc b/addCourseDlg.pyc new file mode 100644 index 0000000000000000000000000000000000000000..64b16f56792e3bec177dc5889587ae31f2428046 GIT binary patch literal 1087 zcmbtTJ#Q015S=}LI}V~isVJgU2NH2ZL4go)B1K4%6Wc)%X->!OI$3BkB#i+Rc&*gdWH-MsYX zAir3Xi2(Gl{393x8t56O-+)GihND<2GBFjbI@Ugx{{q9I{Wa!CWFxv(v{aSP;q9fbj~6=A=ukrJ#a0JlijqzN+ICS4bQS^cY`aj&9zzhWay>5y)P zEVw|sQQQXAz7_Tsi>xRDy4ZvuX_lE88y!FKaxkk9fncTiV6r=G6#{zz3~Fu{=4v|& zlE#}zv1sq-GgA(O^wKX$Y+*S`_#uM9flYIF(VH{7qUS!busEJ@P&F+wlLt3X7Y-#Y zfT`AJR$mzA2BORr1qg+r(VN5m-Vs-k9vvN@vT*W-&upRH)v4v&gfcGQ^7ut8yAQSA zlO&8SG*J*dQ7|IBt z?B%YJ+KRTK$I*`3iTbgSA9lTHYwpzjJ3n%uGYS1O{u=;cMf&yLm@LilN2K;w6O@~ANZ?fUmy<92r PN{EM>*HInSmS6N6PPyc< literal 0 HcmV?d00001 diff --git a/addReadingDlg.py b/addReadingDlg.py new file mode 100644 index 0000000..c4a6da1 --- /dev/null +++ b/addReadingDlg.py @@ -0,0 +1,27 @@ +#!/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")) diff --git a/addReadingDlg.pyc b/addReadingDlg.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9bde8f6ada1bab10c22962d7d5ec6e2e4169595f GIT binary patch literal 1210 zcmbtT&2G~`5FR`KY0HmQ)zz^w+2}MK6>kut(uTPga2njv)Kk6#_Y!q`ksuOrC0G@90&_p$*!N$6 zKu9K}ML^4d0xl6AQ}(_>ZLEDq5wxmgYP5g|7yw@q`pXIhQmadW8>A}I1S{MmRh4*I z{tHptK-4!8TYkzmsfJ$#7l_=8nxNXja7=-b5lKK7FCmpUN%WMpie9;Tks^^=uD|MJ zU0bE7Jw*+2?q&LRFJEaIiNq}GyV+FdT`#^g91Kimcrf5+NG?xJoZ3-)#%!~;{l-G$ zV$5FFI7@Wu!!({-KpH5<6ra--EO z)h!TPAE(3Vyeku)!`wC;1-s#H_%hrN_QOsj9C;;17Ed(95OoKGiIrAJ1<|xJ@FfyVE=;9$HlV+KovR27c-z-A}k}LEV zo!#Y@A#%5R?pS@blWXstO=J~V)c3QgF3y7Z(r-94*6?u14-lLlnlyK#?u^;luKUWu z;$+N0)zoG>4=_*X4kaxlQ>8A98foSRqRd$fLZPVt?x?qa%vBusk5A6SJNB9{j8*RH z+;FZ#85bY;@>L@5F4TIRUxvgqEwo(@`LyDbpo)U?FMv9q-9&fT6ejPCoicXR@wY3~ z0kO4p+MCYLWW+<5--M%RJKl~T$Gg#P+)IQcFV(Q=L_-ZxcQ~9lSx1CY&~sLYCU-3U zm5Qi;ALd2hdYlNOptbXX#xzg)(iIczDT?NvrQrSilwa$|0%}n5%dT&N{ zBC5&DD0C{4goZ0wLXf4owkj<`lT`-aT!`013rq6f4;!}j^-{?)>sR~- DnOFX) literal 0 HcmV?d00001 diff --git a/assignment.py b/assignment.py new file mode 100644 index 0000000..efbfe47 --- /dev/null +++ b/assignment.py @@ -0,0 +1,50 @@ +#!/usr/bin/env python +#coding: utf-8 + +import os +import platform +import sys +from PyQt4.QtCore import * +from PyQt4.QtGui import * + +class AssignmentTab(QWidget): + + def __init__(self, parent=None): + super(AssignmentTab, self).__init__(parent) + + self.assignmentsTable = QTableWidget() + + self.addAssignmentButton = QPushButton("Add assignment") + self.editAssignmentButton = QPushButton("Edit assignment") + self.assignmentDoneButton = QPushButton("Done") + + +## self.assignments = assignmentdata.AssignmentContainer() +## self.assignmentTable = QTableWidget() +## self.setCentralWidget(self.assignmentTable) +## + vlayout = QVBoxLayout() + hlayout = QHBoxLayout() + + hlayout.addWidget(self.addAssignmentButton) + hlayout.addWidget(self.editAssignmentButton) + hlayout.addWidget(self.assignmentDoneButton) + + vlayout.addWidget(self.assignmentsTable) + vlayout.addLayout(hlayout) + + self.setLayout(vlayout) + +## def updateTable(self, current=None): +## +## self.assignmentTable.clear() +## self.assignmentTable.setRowCount(len(self.assignments)) +## self.assignmentTable.setColumnCount(7) +## self.assignmentTable.setHorizontalHeaderLabels(["Date", "Course", "Description", "Available" , "Begun", "Finished", "Delivered"]) +## self.assignmentTable.setAlternatingRowColors(True) +## self.assignmentTable.setEditTriggers(QTableWidget.NoEditTriggers) +## self.assignmentTable.setSelectionBehavior(QTableWidget.SelectRows) +## self.assignmentTable.setSelectionMode(QTableWidget.SingleSelection) +## selected = None + + diff --git a/assignment.pyc b/assignment.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8ac9ad2d5f293dec4c7dc6bec65f6aa8e788cf23 GIT binary patch literal 1147 zcmbtSO^*^m5UuXvd%@jA|H!lP z;7{=%_y_b=&%kVqC!L{-dezl$Ucc@yKUSTDSvACe~IDx2r+(&=0w9ou4t(C zbxlLx0meCo`-Z@te+L1Ytfrl!8%2r(5rk?~ zA}$LXssbw>>OHJ_h~{jzMqHPLpEYsACjspOvPZJkRy=iqtAF5HhM^mcLFEtRgL6;hEoc z(ob(k+Z5y;zbSA%`%*40M|rOxXE;ONAir^E789;uZZ%rt0&x}T^&+E}e3s=QQu4t) zLDrt7OVeh%wu|;Wjcqb*yYbA#n}ul?%1>9@zL+bvxkm`39_pq(R(Pv*Ro5p9FJen~ zGew!($!KZdb^{BdXqgHtpg&W1;VBC}{~}6GR@j|f{)!G|qbzyqSR||#Bc7z|B`!Rg zw$2~?<+jJqPJ4Wwu8ntoU%1#6k~72M4DOy?A49|g7l)AoWGyk9Lgt}Z)+=4!N;&o*CJA)9 zBthyCO|R1joe6a1k8b{zW3$t1lk0DlabCK3)U&7a;umBKv}t#~R%+vhyzr_t>N?#N zYbQD~4_Qa5)K5k&wAX=Mep$?A?ATSSv$3=1G1D z(<*kJ;&?uA{Jh97&wLld{T`)var6`)i!IBES%Eh!B41|1u5hfhHd}{Dtct{uuZ-3k zYMac&SV1z_FMuYG#Zph4DNQzcDwN3=6FbALuQNSKoA2hE)#jG(`V(|}je&x*@Ux)N z!hXUM=Tv zCyY6+j&Whdi&d7oc~LI$dSlVXIu7jjo2mQq&D32KrIsA5h^w^`clQBvTzREVIiNmw zcR>|lmS#FvX(^j_tMIQ$Hl;HuPQlYllV-(23h4hH+4kVk*FK!zND-WY7zNx0FI)Hz Dh4q_& literal 0 HcmV?d00001 diff --git a/assignmentModel.py b/assignmentModel.py new file mode 100644 index 0000000..60b4c27 --- /dev/null +++ b/assignmentModel.py @@ -0,0 +1,66 @@ +#!/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 + diff --git a/assignmentModel.pyc b/assignmentModel.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9c5ed33e3a9c0b896535f4c6534e2b08877b3ace GIT binary patch literal 3059 zcmb`J%WB&|6o!xQmpJ!Z3xz_VU{Z)F1PY}sxsj||nn^eHMkt<%BO=?uGY$l@DeVIl zy6mpc(kJK(wC6vvWM$FTj%|64e$7ZnpZ=MV=G(9N>W}X~k6SeS&GUYji~Ynw^FKqE zM9oBJsF{iDv((Ir&eCO$KHzLt`9u{GRZLVVQRPHcSmj6;NayJb(PyHM%_{DES}!t1 z@SA_{>KT>}VaqLY+_N@lcRQx*-uAQ!lLx>V`&{f-4u;VMHv(<)UAQJsra;Z2#FE6a z#0u`o0JwQp#2hggYHCBa<~%r2vp~8iVv%%7#1iSUh-K0h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V?d00001 diff --git a/calendar.py b/calendar.py new file mode 100644 index 0000000..fbf6aef --- /dev/null +++ b/calendar.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python +#coding: utf-8 + +import os +import platform +import sys +from PyQt4.QtCore import * +from PyQt4.QtGui import * + +class CalendarTab(QWidget): + + def __init__(self, parent=None): + super(CalendarTab, self).__init__(parent) + + calendar = QCalendarWidget() + + layout = QVBoxLayout() + layout.addWidget(calendar) + self.setLayout(layout) + diff --git a/calendar.pyc b/calendar.pyc new file mode 100644 index 0000000000000000000000000000000000000000..35324b3bece14805492c7c537e7ae2d7d275efb0 GIT binary patch literal 816 zcmbtR!A{#i5S?8oDM>-SRQ-io9PouBst}RjQbl!wK;&Y%@dj3LypeYz5hE|!x`uRWhnmu9T5#jv1CldwO|pf5A&yR9N5<=ugPj!E4o*tI1)K`nz$7}MC*ub zo7Os9Bi(i+B)Mp46jTo4FG48V{c>UIVURAP$}(G7&NBXnL%MC@(iYc-Ls#j=iM#!s zuiTQki=4bDHn(!}hMT)syL&HRTtFC#c=n*J5mAyRjh{CcXV{{et2s3`yd literal 0 HcmV?d00001 diff --git a/courseDlg.py b/courseDlg.py new file mode 100644 index 0000000..2f0e47b --- /dev/null +++ b/courseDlg.py @@ -0,0 +1,39 @@ +#!/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 db import * + +class CourseDlg(QDialog): + + def __init__(self, parent=None): + super(CourseDlg, self).__init__(parent) + + codeLabel = QLabel(self.trUtf8("&Code")) + titleLabel = QLabel(self.trUtf8("&Title")) + shortLabel = QLabel(self.trUtf8("&Short form")) + + codeEdit = QLineEdit() + titleEdit = QLineEdit() + shortEdit = QLineEdit() + + codeLabel.setBuddy(codeEdit) + titleLabel.setBuddy(titleEdit) + shortLabel.setBuddy(shortEdit) + + self.layout = QGridLayout() + self.layout.addWidget(codeLabel, 0, 0) + self.layout.addWidget(titleLabel, 1, 0) + self.layout.addWidget(shortLabel, 2, 0) + self.layout.addWidget(codeEdit, 0, 1) + self.layout.addWidget(titleEdit, 1, 1) + self.layout.addWidget(shortEdit, 2, 1) + self.setLayout(self.layout) diff --git a/courseDlg.pyc b/courseDlg.pyc new file mode 100644 index 0000000000000000000000000000000000000000..90825d7d63ebdf24768b802779e279729c2757f9 GIT binary patch literal 1348 zcmbtUO>fgc5FM`*=Yv)VM0@6dkkvzT;eZ4}s442Dibzs~$i*`8CSBFBBku+&C_T0R zhy(wND+hQpj-5hp;PtNG%)Xs{JG05RAN$>d??2C`w0-vQeT#0tVo30MbVW3&u}2fH z@++Ds!HTYYx?na?qejgd1vP5bs14+k?$8VY8+1!_L-c9V7i-mznhHHo%6NNmDB%ubYr7lKNVJ=M+nasE- zavW-S9)H%UKv#TlvzJo-;kn85yTmxh3#@i0t0Y-FjyOCkOmZHt^OciTX$kq##7Xke zBy;T~23D1{kYhN$5LTx%S+tA`ot3mH4pnOCGK~+mGc6ykG&u-!MHTNR)Y=jzTOp=M z273h5yUZ85=S*SJp8b+VR|wIw(@UMKQr(+Y*Zg?79{Hd@LbuN_kawsKJT%qu(A2(% zruMwUJ8cm1p(I67l*J2;obn-}XpwVxm`oVtnU>%?Y5$~;3-}P-a&-e$)|YW^MZ+?U z9p3}|gg{zb$A2^L*F*Q>caXbE>1!X_nOTxLEFqBsBa(MLd(V6`yECJ|{;8Bc`Saghk0qZ9 z{Qm}utQd@O_%qlUW5*e7uwx_bH`%dCw8_qLEXcFt0yA(;j-3@*GocnTYB8g%j4EZ+ zQbv_CssdD={R#{$GhQHKh4CU0tBfxYvBvl!5w{q(h*)R5M8s{zmxy?e@iGw`j8}-b z!}u~0cNt$H;(f+fiTHr=H6lJ_Vuf8X5XxXj)ms3I{~vrBRltU+B2>KPcKrvsjh&x) zSm&UaPMRIyMRA~wM{qxmo#J<7kQ_G_W}`b@>Ugh zqr>FSfv<#GfVLNfq3{%Sd%ajjv7VO4#Uf}cByf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%BJbQ^(~ zBPAzwKI%mHtIAhsQ}Q8HW%x0pY^-8VZVoc@l4%tz%c@u}m7L)H9wDbQ1y^XMN literal 0 HcmV?d00001 diff --git a/editAssignmentDlg.py b/editAssignmentDlg.py new file mode 100644 index 0000000..a444ef3 --- /dev/null +++ b/editAssignmentDlg.py @@ -0,0 +1,28 @@ +#!/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 assignmentDlg import * + +class EditAssignmentDlg(AssignmentDlg): + + def __init__(self, parent=None): + super(EditAssignmentDlg, self).__init__(parent) + self.setAttribute(Qt.WA_DeleteOnClose) + + buttonBox = QDialogButtonBox(QDialogButtonBox.Apply|QDialogButtonBox.Close) + + self.layout.addWidget(buttonBox, 7, 0, 1, 2) + + self.connect(buttonBox.button(QDialogButtonBox.Apply), SIGNAL("clicked()"), self.apply) + self.connect(buttonBox, SIGNAL("rejected()"), self, SLOT("reject()")) + + self.setWindowTitle(self.trUtf8("Edit assignment")) + + def apply(self): + pass diff --git a/editAssignmentDlg.pyc b/editAssignmentDlg.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6ce81e54a6007416c2b2726278e0172d85ce8b38 GIT binary patch literal 1378 zcmb_c&2G~`5FR^Dnx^R=NWB0O;$%2995`@5h@?doQk9aVs3I53*qd~TV@LKx5UHHf zH{!|*@Ep7WF96?++qB{cIN9;HJF_$2{3Kt0ZZ@{R|2T^1>S^Hp3ac1F#P~WiAsVi* zLqq5K+@+zb*riE@PQ@C?TcPR-)qpBw)@X#w9$gYGiQW(E;(p*)5z79;)Ab!d7V(64 zAz#Oq+eKl=>C~irn2c9EU1&R4#RCWfhH$K8F2S%Oei3BoQGei9U=fMEfEv~TR`Csj zHP{8%xMW?raA@g}gT1W~dt|G+=NjQ_*HqT21Dh`}hSfUR23;U*8606fT2@OB8=|ny ztE;%fn-r@}afAitBm`hN$$wUq=F6u!1)%vQjl9 zfz(73B{rIv*neC|M|1PhM6BETY75;qHd5n<;i|~~9h|YWq?pf4-q()Er691WclTKC|)IFiVC}mZnGmZ6HEOxKTKGbJT4gtCLXOdC(7zPfmFY0MXBE8fTwQ zErXKW<@_Cwp6f)QzhaV%R51&4446hP{ez|t15!~u1!|pVQ`2Ib+oUzgVw;XzMRacB zd16}T&pF+nE&4KU%0mP>d(Mu#=iYaH=aCypRj-$hqp;Do%4xR@EwFzV;$N9ao9|&2 z(kXJf`itW_a1f;7)S#&{B|$LFBpqypPB%-9CefGsHyjlGT}dP(9Ut*ubDNtw#X3M) zp@e2h$fGQuvQ)2F6gq8h7d?Kq-{XTUH@pGG^}*5HD)XE1#V-lNvzli7W#~!!_KD8) Z|H!A1622&l_EJ(Rq}5GFK8^C@{su-;B)tFt literal 0 HcmV?d00001 diff --git a/editReadingDlg.py b/editReadingDlg.py new file mode 100644 index 0000000..bc5f302 --- /dev/null +++ b/editReadingDlg.py @@ -0,0 +1,32 @@ +#!/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 EditReadingDlg(ReadingDlg): + + def __init__(self, parent=None): + super(EditReadingDlg, self).__init__(parent) + self.setAttribute(Qt.WA_DeleteOnClose) + + buttonBox = QDialogButtonBox(QDialogButtonBox.Apply|QDialogButtonBox.Close) + + self.layout.addWidget(buttonBox, 6, 0, 1, 2) + + self.connect(buttonBox.button(QDialogButtonBox.Apply), SIGNAL("clicked()"), self.apply) + self.connect(buttonBox, SIGNAL("rejected()"), self, SLOT("reject()")) + + self.setWindowTitle(self.trUtf8("Edit reading")) + + def apply(self): + pass + diff --git a/editReadingDlg.pyc b/editReadingDlg.pyc new file mode 100644 index 0000000000000000000000000000000000000000..81f0ac711f355eaae97830bf89daabae16c5dd87 GIT binary patch literal 1428 zcmbtU%Wl(95FI;@rfK>D)DRHA6HOO6pCHQ(YB-of(k5Ru@_JW?Sb5P zFxE&HNW~}X(}hPfk37h>LR=+VQ<>|8uU%5!pk3H}g)yv_$u{W%VawnMTcug8^spid z+q$}nJG@GXI+UAhG^^aO6J1?`LC5QqED4@fON$MSwMj`sPmv*p&m<#)H!iFW{G4lpqr#s=kNe!E$Y%k4WC5OlRHcIos?u0qdcJnXleP=vQr;18L zsUnT0IgBLvC`nFjGBC_bkm5YckUeHVgphEfu=n<$vva6UB6U}VzIS+ZqHBZbr#4IS z&nK3VlHBFuJ)gbMb--|?jPy(u9bJ9hWRCJ(n+9~4-?A`^tRT}GX z@DSu=M&xz$SH=zCFwCNn!8m0(!f=#JArK{(PM#U9pey&U6HxRY&5&BelN0B4zqK03 z4(ZU7E8O^^Bc_A&3}h2a$_<_8B8t7%8h*+Djv$;p;nZLm6= uk4A+!N==qTgbEY|NpoM8?R+Kmx_e+PPd?3?AOA14CMuKw literal 0 HcmV?d00001 diff --git a/editScheduleDlg.py b/editScheduleDlg.py new file mode 100644 index 0000000..1e4fd31 --- /dev/null +++ b/editScheduleDlg.py @@ -0,0 +1,31 @@ +#!/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 EditScheduleDlg(ScheduleDlg): + + def __init__(self, parent=None): + super(EditScheduleDlg, self).__init__(parent) + + buttonBox = QDialogButtonBox(QDialogButtonBox.Apply|QDialogButtonBox.Close) + + self.layout.addWidget(buttonBox, 6, 0, 1, 2) + + self.connect(buttonBox.button(QDialogButtonBox.Apply), SIGNAL("clicked()"), self.apply) + self.connect(buttonBox, SIGNAL("rejected()"), self, SLOT("reject()")) + + self.setWindowTitle(self.trUtf8("Edit lesson")) + + def apply(self): + pass + diff --git a/editScheduleDlg.pyc b/editScheduleDlg.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d44e946e64473db121363e46bc0ce898ad99428b GIT binary patch literal 1371 zcmbtUO>fgc5FImZ_k#y94Xj8{SFu_GsTDQ(Fv7@_LJa0`U{pnzytq`5{QjjOOF z$#gPRY52spp%v;xqFnJ;qSU_Q^5f(|odm1AC6yfkoPI&qqw>vW==YeGv*o`a7#eUdN&hi{Mj z2PYCFmT&=lhbQmO+%5oup6fg{pUz73Cx<>(E+(+N4SV^YQnop~0!u_Iv$fk#oQMOxao~3Nt~%XjSC5~vEXeW`i-}P4DjvmYq`KL%aXq0E8F`J L9gn~5n_vGAeGnYJ literal 0 HcmV?d00001