Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.3 KB

example.md

File metadata and controls

46 lines (33 loc) · 1.3 KB

Introducción a PyQt 5

Aquí encontrarás mis apuntes sobre PyQt 5, el objetivo es que sirvan de apoyo para mi curso.

Commands

  • mkdocs new [dir-name] - Create a new project.
  • mkdocs serve - Start the live-reloading docs server.
  • mkdocs build - Build the documentation site.
  • mkdocs help - Print this help message.

Test

  • mkdocs new [dir-name] - Create a new project.

Project layout

mkdocs.yml    # The configuration file.
docs/
    index.md  # The documentation homepage.
    ...       # Other markdown pages, images and other files.
from PyQt5.QtWidgets import QApplication, QMainWindow

class MainWindow(QMainWindow):
    def __init__(self, *args, **kwargs):
        super(MainWindow, self).__init__(*args, **kwargs)
        self.setWindowTitle("Hola mundo")
        self.setFixedSize(400, 200)

if __name__ == "__main__":    
    import sys
    app = QApplication(sys.argv)
    window = MainWindow()
    window.show()
    sys.exit(app.exec_())

!!! note "" Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor massa, nec semper lorem quam in massa.