What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-20 11:24:04
self.close() pyqt5 not working
class Ui_Dialog(QtWidgets.QMainWindow): def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(346, 182) self.pushButton = QtWidgets.QPushButton(Dialog) self.pushButton.setGeometry(QtCore.QRect(110, 80, 75, 2... Add solution -
Python 2021-10-07 08:35:02
open new window in pyqt5
from PyQt5.QtWidgets import QApplication, QMainWindow, QPushButton, QLabel, QVBoxLayout, QWidget import sys class AnotherWindow(QWidget): """ This "window" is a QWidget. If it has no parent, it will appear as a free... Add solution -
Python 2021-10-03 20:13:03
pyqt5 video player
from PyQt5.QtCore import QDir, Qt, QUrl from PyQt5.QtMultimedia import QMediaContent, QMediaPlayer from PyQt5.QtMultimediaWidgets import QVideoWidget from PyQt5.QtWidgets import (QApplication, QFileDialog, QHBoxLayout, QLabel, &nbs... Add solution -
Python 2021-09-30 05:23:05
hbox pyqt5
#!/usr/bin/python """ ZetCode PyQt5 tutorial In this example, we position two push buttons in the bottom-right corner of the window. Author: Jan Bodnar Website: zetcode.com """ import sys from PyQt5.QtWidgets import (QWid... Add solution -
Python 2021-09-19 17:20:04
pyqt5 file dialog example
import sys from PyQt5.QtWidgets import QApplication, QMainWindow, QWidget, \ QPushButton, QVBoxLayout, QFileDialog # you can copy and run this code class MainWindow(QMainWindow): def __init__(self, parent=None):#-------------- super(Main... Add solution
Best helpers
Ranking is empty