From 7b3699273c0f0f6360e98f9c1386413e186a5f9c Mon Sep 17 00:00:00 2001 From: tirilane Date: Sun, 10 Aug 2008 20:22:15 +0000 Subject: [PATCH] Deleting --- AssignmentTab.pyw | 33 -------- CalendarTab.pyw | 21 ------ book.py | 67 ----------------- book.pyc | Bin 2398 -> 0 bytes bookDlg.py | 50 ------------- bookDlg.pyc | Bin 1694 -> 0 bytes db.py | 170 ------------------------------------------ db.pyc | Bin 5223 -> 0 bytes editAssignmentDlg.py | 28 ------- editAssignmentDlg.pyc | Bin 1378 -> 0 bytes editReadingDlg.py | 32 -------- editReadingDlg.pyc | Bin 1428 -> 0 bytes editScheduleDlg.py | 31 -------- editScheduleDlg.pyc | Bin 1371 -> 0 bytes 14 files changed, 432 deletions(-) delete mode 100644 AssignmentTab.pyw delete mode 100644 CalendarTab.pyw delete mode 100644 book.py delete mode 100644 book.pyc delete mode 100644 bookDlg.py delete mode 100644 bookDlg.pyc delete mode 100644 db.py delete mode 100644 db.pyc delete mode 100644 editAssignmentDlg.py delete mode 100644 editAssignmentDlg.pyc delete mode 100644 editReadingDlg.py delete mode 100644 editReadingDlg.pyc delete mode 100644 editScheduleDlg.py delete mode 100644 editScheduleDlg.pyc diff --git a/AssignmentTab.pyw b/AssignmentTab.pyw deleted file mode 100644 index 0a7224e..0000000 --- a/AssignmentTab.pyw +++ /dev/null @@ -1,33 +0,0 @@ -#!/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 deleted file mode 100644 index dd0771b..0000000 --- a/CalendarTab.pyw +++ /dev/null @@ -1,21 +0,0 @@ -#!/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/book.py b/book.py deleted file mode 100644 index 1522ef6..0000000 --- a/book.py +++ /dev/null @@ -1,67 +0,0 @@ -#!/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 BookDlg(QDialog): - - def __init__(self, parent=None): - super(BookDlg, self).__init__(parent) - - titleLabel = QLabel(self.trUtf8("&Title")) - authorLabel = QLabel(self.trUtf8("&Author")) - editionLabel = QLabel(self.trUtf8("&Edition")) - isbnLabel = QLabel(self.trUtf8("&ISBN")) - courseLabel = QLabel(self.trUtf8("&Course")) - - titleEdit = QLineEdit() - authorEdit = QLineEdit() - editionEdit = QSpinBox() - editionEdit.setRange(1, 50) - isbnEdit = QLineEdit() - courseEdit = QComboBox() - - titleLabel.setBuddy(titleEdit) - authorLabel.setBuddy(authorEdit) - editionLabel.setBuddy(editionEdit) - isbnLabel.setBuddy(isbnEdit) - courseLabel.setBuddy(courseEdit) - - self.layout = QGridLayout() - self.layout.addWidget(titleLabel, 0, 0) - self.layout.addWidget(authorLabel, 1, 0) - self.layout.addWidget(editionLabel, 2, 0) - self.layout.addWidget(isbnLabel, 3, 0) - self.layout.addWidget(courseLabel, 4, 0) - self.layout.addWidget(titleEdit, 0, 1) - self.layout.addWidget(authorEdit, 1, 1) - self.layout.addWidget(editionEdit, 2, 1) - self.layout.addWidget(isbnEdit, 3, 1) - self.layout.addWidget(courseEdit, 4, 1) - self.setLayout(self.layout) - - -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/book.pyc b/book.pyc deleted file mode 100644 index d9285c02ce2778c612a0954e36a2138b3b03e95e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2398 zcmbtV&5q+l5H8#KPljD2$b|*1<}flGHWC7X5JF6{FswAnGR~kCbBP>xPo{}uM|MX` zr0i+-2{`fqyZ~>;ZBOu3IdMV;4g+I%O;vTd{<`|h?|&S%-u&|IcM)y=j`06$to&CH zh1a1O(N)PibmeUIE?v38yEOCYlC8m2O0HURwUVosT%+Wg;5^bTx`yity(YRP`thnw zs!F;o+FGgYa7rV;j`Yl*_#65TSj*%i%i4aL&Ys58vLcstSou338nqyZl<*q0cod9$ zwuqQ?uqs#sto#jJTJgL_LM|DX)(+h|(6adv?kFU8wU-W(ZVGC^k)%rZG$kG>cVc2&L`>KR)49~%C`BV zv&^XTaFs5tc#jK~y@yJ@FbXcj2OJh=(hke1=Q_TYj}~F36N?!^CETDQS#}>vlM0#J zsEbAw3JzlONwPDKq+z>V@g@bb@4}gg?0e%&WUilGm9~W^7JY1yko*{2?%Qx39=GZ6^N^`~D)kHOV;lf-)CC=Yt-uHX0?@5mU_^sAFj2sBd;n`C%$E$1%$N-Cqd&gbLWqP7WFRWJnhjM2_5h3tirhn4WZm$rr$0Lhg zK2G$@$2=WA|0D+NGWdWAcgj8lxp->AIGy%!i&D9RZ1a33w_^|{k&XlQ74Y}+%M_(a zf{{j0m`HFHEA+mx4F}7v*!bfR8%hka8<0+km^_xzCh;20v0H zPkGmU@K|N)s(ND9z<|EaK2!r`a5H1fx}M zxmDk?@1akexv<6)kgX)srTbQ@vhoRU96 z{0yJL4RL^1HQsPIfxEj>^}76O>59L6->ZH5`txK+%TEJ;U*g!$5HYq#7exKF?or=c z;Xd_!(S5oI=#0Ig71mmDt(DeVd978T1*EDp0%3u!iLQt~^lKcl*DNBu{)JDw=|OcY z9=bB*p)nW7$#|Wy&lrxq5227N=p@B!(M#_so4BW9%5TlwKMKNl*Q4*srh66@iX$UgZTPNLM*0{p^ zDge+N72z@!(DGu${XcnOSC)=6TeQS>W*O zKm;s!zM8in@M4&<*;Hj+nP4UjL!D|DhInS8&S^AIiKs4n=SELmRZyKOj*W+gPj9Nz zL-R=tt6Voq$13+bGLwPXx;mW2@!Zwey?Lt2nPsrH))6C z)U8TJ@}+5%snlUcPzg6EPnPK;X;N-;8&%$@9N-|@4$_VLP#U(m6*ei5xpOixnS044 zHrLNoYu}uS%_go$gk{+}Hxt!zI@3wZeoVs)6RVaTo~wA4sMa9=!FV*Cclm|x;@D>p zFpVY(FUrM);lyxAnC#FtsgjVJbpIh| z9-iAcmS?QwH@QuYbz>!iX%e}S$tL)Lg45hOev`NJj(hT`a%gzGYMT}O E26eVj3;+NC diff --git a/db.py b/db.py deleted file mode 100644 index 5c1655f..0000000 --- a/db.py +++ /dev/null @@ -1,170 +0,0 @@ -#!/usr/bin/env python -#coding: utf-8 - -import os -import platform -import sys -from pysqlite2 import dbapi2 as sqlite -from PyQt4.QtCore import * -from PyQt4.QtGui import * -#from PyQt4.QtSql import * -#from main import * -from assignment import * -from reading import * -from schedule import * -from calendar import * -from book import * -from course import * - -def initDB(): - conn = sqlite.connect('egon.db') - curs = conn.cursor() - return curs, conn - -def initNewDB(): - cursor, conn = initDB() - initAssignmentDB(cursor) - initReadingDB(cursor) - initScheduleDB(cursor) - initBookDB(cursor) - initCourseDB(cursor) - initAssignmentInCourse(cursor) - initReadingInCourse(cursor) - initLessonInCourse(cursor) - initCourseUsesBook(cursor) - exitDB(conn) - -def initAssignmentDB(cursor): - cursor.execute(''' - CREATE TABLE Assignment ( - aid INTEGER PRIMARY KEY, - date TEXT, - description TEXT, - available BOOLEAN, - begun BOOLEAN, - finished BOOLEAN, - delivered BOOLEAN - ) - ''') - -def initReadingDB(cursor): - cursor.execute(''' - CREATE TABLE Reading ( - rid INTEGER PRIMARY KEY, - week TEXT, - chapter TEXT, - pages TEXT - ) - ''') -def initScheduleDB(cursor): - cursor.execute(''' - CREATE TABLE Lesson ( - lid INTEGER PRIMARY KEY, - day TEXT, - fromtime TEXT, - totime TEXT, - type TEXT, - room TEXT - ) - ''') - -def initBookDB(cursor): - cursor.execute(''' - CREATE TABLE Book ( - isbn TEXT PRIMARY KEY, - title TEXT, - author TEXT, - edition INTEGER - ) - ''') - -def initCourseDB(cursor): - cursor.execute(''' - CREATE TABLE Course ( - code TEXT PRIMARY KEY, - title TEXT, - short TEXT - ) - ''') - -def initAssignmentInCourse(cursor): - cursor.execute(''' - CREATE TABLE assignmentInCourse ( - assignment INTEGER, - course INTEGER - ) - ''') - -def initReadingInCourse(cursor): - cursor.execute(''' - CREATE TABLE readingInCourse ( - reading INTEGER, - course INTEGER - ) - ''') - -def initLessonInCourse(cursor): - cursor.execute(''' - CREATE TABLE lessonInCourse ( - lesson INTEGER, - course INTEGER - ) - ''') - -def initCourseUsesBook(cursor): - cursor.execute(''' - CREATE TABLE courseUsesBook ( - course INTEGER, - book TEXT - ) - ''') - -def addNewBook(isbn, title, author, edition, course): - cursor, conn = initDB() - - bookQuery = ''' - INSERT INTO Book - VALUES (%s, %s, %s, %i) - ''' % (isbn, title, author, edition) - courseUsesBookQuery = ''' - INSERT INTO courseUsesBook - VALUES (%i, %s) - ''' % (course, isbn) - - cursor.execute(bookQuery) - cursor.execute(courseUsesBookQuery) - - exitDB(conn) - -def addNewCourse(code, title, short): - cursor, conn = initDB() - - courseQuery = ''' - INSERT INTO Course - VALUES (%s, %s, %s) - ''' % (code, title, short) - - cursor.execute(courseQuery) - - exitDB(conn) - -def getCourses(): - cursor, conn = initDB() - - courseQuery = ''' - SELECT * - FROM Course - ''' - - cursor.execute(courseQuery) - - courses = [] - for row in cursor.fetchall(): - courses.append(CourseModel(row[0], row[1], row[2])) - -def exitDB(conn): - conn.commit() - conn.close() - - -#initNewDB() diff --git a/db.pyc b/db.pyc deleted file mode 100644 index 7cfc4a67c8144a8c50c8817446dffbf6d5c9c567..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5223 zcmcIo&2k$>5T4baEyarMgqVat*h{KJNX1pDaG(f3wj+WIM~>GD5EnVDc2@Srl2+Ln z#W58Z2Xo^AIB@0(cnV&J7l8hHRwK!lsK~^UcJ$5v^w&Kz-TUX?<)!+-{gmnd zD|*ztBZQ=%Bld;ZvDgtiPQN@Ob~21JVm~WdIkA%$4*F!penHezG-J`MMMaBB7G1Dt z&Z07*ocM(na8bxSgLxqf3>Ji(VX!FVEQ3oz78zU?vc%vWAulkvBIF!{B_YcU-WBp9 zgR4T$Gq@(?0)zL2Tx4)v$V&{~2M^no%S24{4}EGCVn^r#C9>gnqq`=L!dpybh7g`L zdeluyH1#Cn9C7T3BOzW>HY1LOIC8{m`U%m@&;;mGQ!|u?yK(1^Y*e!7i+R+GR-{9X zx*+a!!a#Fz&`VUDa7Ud>>kOcZ3Ka-WluKxNFK&m+I!dC}vPyzw%(1MKUT1$=?ANjRAE}-%sX?=X_*eFiew@Qe#}51l0&l`B%h-*kcd&%qMSu}iwYLaSTt)< z(V`Ma!gyp;+st*Xa)DOhfeyVu36{O0RJ7Y^haD0?!;n$vg}#hByHs*9E!htCLfLDD zR8&ffR^xb|vU6#6Ehh3%zmygXMqcljO3k(~7~hs(O1o@?O2wU1#isWY6)MchjEAql zIIGZu3cWlf)2gnRPFo8P9;{xajKbQXz0#>~06WEFEp(AGFiGC;mS1WNW zuGFh;ePwl{>JC_OE4Bq1`jK?kYxU~Gs^>oT)*r2SPu*{;Pj8PjlD-bzdi96;iQ-TN zNz~O*+!<5rzx1P)-)M#I>gMJ~b)`1ixe@O6I^(OFWDJTFKfYFmt>|T#465x?KVoF| zH*d^WVbIed7qGgf)RZ?%T;oJg(6w+1rRmi1J9V;)8&OAU=_hoNyooLj!f<~K+rggS z)nPKGrt9y9ip%XF)TEbxUHl1 zI5XDqq>97txb{gLx6g}DoN}KH@mZXX&&d{tBkTm5k!qNIJ9*>lNYnm3z4QH^-iyZ> zTPPzw4$>p#94roZ$-^OrrnI=9sjFSp$euLE{RxhOSQ`1K=SUGl`n>D}*WcC<3x(C`Ee&$` zc4EKW+(#U7r8kg?xcDp@c`Te6&wD}#2ZL5yqUHBiYef7gSpEYVhtD*!%%py!K@_eP@LeFj z3r<-S9DAKY3T7QKstGxdsVxvi_=K1xw5pkx8Zet6Znq=N<`T4Gl?Gp+VamnwrvHQb zrJ+U1seC{=I=F<06*Jjw`MMb=ZKgvVD&F4RL-YFOu15`phvxjU;PK&>zISJfgik`| zyI=6I7nv<=Js+kzz3+J>F}$sD~8nsXNLRv|m|ZXr|5 V7t8c57Uzm|+ZSik?;_3;< diff --git a/editAssignmentDlg.py b/editAssignmentDlg.py deleted file mode 100644 index a444ef3..0000000 --- a/editAssignmentDlg.py +++ /dev/null @@ -1,28 +0,0 @@ -#!/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 deleted file mode 100644 index 6ce81e54a6007416c2b2726278e0172d85ce8b38..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 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 diff --git a/editReadingDlg.py b/editReadingDlg.py deleted file mode 100644 index bc5f302..0000000 --- a/editReadingDlg.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 deleted file mode 100644 index 81f0ac711f355eaae97830bf89daabae16c5dd87..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 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 diff --git a/editScheduleDlg.py b/editScheduleDlg.py deleted file mode 100644 index 1e4fd31..0000000 --- a/editScheduleDlg.py +++ /dev/null @@ -1,31 +0,0 @@ -#!/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 deleted file mode 100644 index d44e946e64473db121363e46bc0ce898ad99428b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 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