We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1451918 commit 5683d36Copy full SHA for 5683d36
01-ventanas/icon.ico
97.3 KB
01-ventanas/ventana.py
@@ -0,0 +1,25 @@
1
+import sys
2
+
3
+from PyQt5.QtCore import QCoreApplication
4
+from PyQt5.QtGui import QIcon
5
+from PyQt5.QtWidgets import QApplication, QWidget, QPushButton
6
7
8
+if __name__ == '__main__':
9
+ app = QApplication(sys.argv)
10
11
+ w = QWidget()
12
+ w.setWindowTitle('Ventana PyQT-5')
13
+ w.setWindowIcon(QIcon('icon.ico'))
14
15
+ btn = QPushButton('Este es un Button', w)
16
+ btn.setToolTip('This is a <b>QPushButton</b> widget')
17
+ btn.move(150, 50)
18
19
+ btn.setIcon(QIcon('icon.ico'))
20
+ btn.clicked.connect(QCoreApplication.instance().quit)
21
22
+ w.resize(1280, 720)
23
+ w.show()
24
25
+ sys.exit(app.exec_())
0 commit comments