content.py 917 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. from PyQt5 import QtCore
  4. from PyQt5.QtGui import QFont, QSyntaxHighlighter
  5. from PyQt5.QtWidgets import QWidget, QLabel, QTabWidget, QHBoxLayout, QSplitter, QPlainTextEdit
  6. class Summary(QLabel):
  7. def __init__(self):
  8. super(Summary, self).__init__()
  9. class ContentTab(QWidget):
  10. def __init__(self, core):
  11. super(ContentTab, self).__init__()
  12. # self.grid = QGridLayout()
  13. hbox = QHBoxLayout()
  14. hbox.setContentsMargins(0,0,0,0)
  15. self.setLayout(hbox)
  16. hsplitter = QSplitter(QtCore.Qt.Horizontal)
  17. self.summary = QLabel("Summary (markdown files list).")
  18. hsplitter.addWidget(self.summary)
  19. self.mdsource = QLabel("Content (markdown src).")
  20. hsplitter.addWidget(self.mdsource)
  21. self.mdpreview = QLabel("Content (markdown preview).")
  22. hsplitter.addWidget(self.mdpreview)
  23. hbox.addWidget(hsplitter)