31 lines
724 B
Python
31 lines
724 B
Python
|
#!/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)
|