34 lines
854 B
Python
34 lines
854 B
Python
|
#!/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)
|
||
|
|