Skip to content

Instantly share code, notes, and snippets.

Created June 23, 2016 10:14
Show Gist options
  • Save anonymous/3d7762567c889237dc42b13b6b0c16f2 to your computer and use it in GitHub Desktop.
Save anonymous/3d7762567c889237dc42b13b6b0c16f2 to your computer and use it in GitHub Desktop.
import sys
from PyQt5.QtWidgets import QTableWidget, QApplication, QMainWindow
class MyTable(QTableWidget):
def __init__(self, r, c):
super().__init__(r, c)
self.show()
class Sheet(QMainWindow):
def __init__(self):
super().__init__()
self.form_widget = MyTable(10, 10)
self.setCentralWidget(self.form_widget)
self.show()
app = QApplication(sys.argv)
sheet = Sheet()
sys.exit(app.exec_())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment