Sample Python Scripts

This topic was published by and viewed 2296 times since "". The last page revision was "".

Viewing 1 post (of 1 total)
  • Author
    Posts

  • DevynCJohnson
    Keymaster
    • Topics - 437
    • @devyncjohnson

    PySide (Qt4) Sample Code

    PySide-Qt4 (Python2) - https://dcjtech.info/wp-content/uploads/2014/10/PyQt4_py2.txt

    #!/usr/bin/env python
    # -*- coding: utf-8 -*-
    import sys
    from PySide.QtGui import *
    
    a = QApplication(sys.argv)
    
    w = QWidget()
    
    w.resize(320, 240)
    w.setWindowTitle("Hello, World!")
    w.show()
    
    sys.exit(a.exec_())

    PyQt4 Sample Code

    PyQt4 (Python2) - https://dcjtech.info/wp-content/uploads/2014/10/PySide_Qt4_py2.txt

    #!/usr/bin/env python
    # -*- coding: utf-8 -*-
    import sys
    from PyQt4.QtGui import *
    
    a = QApplication(sys.argv)
    
    w = QWidget()
    
    w.resize(320, 240)
    w.setWindowTitle("Hello, World!")
    w.show()
    
    sys.exit(a.exec_())
Viewing 1 post (of 1 total)