You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
632 B
34 lines
632 B
import sys
|
|
|
|
from PyQt5.QtWidgets import QMainWindow, QApplication, QPushButton,QLabel, QVBoxLayout, QWidget
|
|
|
|
|
|
|
|
|
|
|
|
class TestAWidget(QMainWindow):
|
|
|
|
|
|
|
|
def __init__(self):
|
|
''' Replace `QPushButton` with any widget you intend to test.
|
|
This is meant to be used for quick and easy testing.'''
|
|
super().__init__()
|
|
|
|
|
|
self.testWidget = QPushButton()
|
|
|
|
|
|
|
|
|
|
self.setCentralWidget(self.testWidget)
|
|
self.setGeometry(0,0,400,400)
|
|
self.setWindowTitle('Test')
|
|
self.show()
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
app = QApplication(sys.argv)
|
|
test = TestAWidget()
|
|
sys.exit(app.exec()) |