Created
June 23, 2016 10:14
-
-
Save anonymous/3d7762567c889237dc42b13b6b0c16f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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