Demowind,pyw.txt

  • Uploaded by: Nyasha Chihungwa
  • 0
  • 0
  • July 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Demowind,pyw.txt as PDF for free.

More details

  • Words: 40
  • Pages: 1
import sys from PyQt4 import QtGui, QtCore class demowind(QtGui.QWidget): def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.setGeometry(300, 300, 200, 200) self.setWindowTitle('Demo window') quit = QtGui.QPushButton('Close', self) quit.setGeometry(10, 10, 70, 40) self.connect(quit, QtCore.SIGNAL('clicked()'), QtGui.qApp, QtCore.SLOT('quit()')) app = QtGui.QApplication(sys.argv) dw = demowind() dw.show() sys.exit(app.exec_())

More Documents from "Nyasha Chihungwa"

July 2020 4
Easylicence.pdf
November 2019 3
Jobinfo.txt
June 2020 8
November 2019 14
Demowind,pyw.txt
July 2020 8