35 lines
825 B
Python
35 lines
825 B
Python
|
#!/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)
|
||
|
|