What do you want to save?
Add Code snippet
New code examples
-
Python 2022-02-26 12:40:09
how to run flask with pyqt5
from PyQt5.QtWidgets import QLabel, QVBoxLayout, QMainWindow, QApplication, QWidget from flask import Flask, render_template from threading import Thread import sys # You can copy and paste this code for test and run it class MainWindow(QMainWindow): ... Add solution -
Python 2022-02-01 13:31:42
Qslider pyqt
# you need to import QSlider from PyQt5.QtWidgets first from PyQt5.QtWidgets import QSlider layout = QVBoxLayout() # or QHBoxLayout slider = QSlider(Qt.Horizontal) # or Qt.Vertical slider.setMinimum(10) # set min limit slider.setMaximum(30) # set max lim... Add solution -
Python 2022-01-30 17:11:29
creating a web page in python
import sys from PyQt5.QtWidgets import * class MainWindow(QMainWindow): def __init__(self): super(MainWindow, self).__init__() self.showMaximized() app = QApplication(sys.argv) QApplication.setApplicationName('My Cool Browser') wi... Add solution -
Python 2021-11-13 21:18:15
pyqt open file dialog
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 -
Python 2021-11-11 23:09:08
first app using pyqt5
from PyQt5.QtWidgets import QApplication, QWidget # Only needed for access to command line arguments import sys # You need one (and only one) QApplication instance per application. # Pass in sys.argv to allow command line arguments for your app. # If yo... Add solution -
Other 2021-11-09 05:20:15
hwo to run multiple QApplication in pyqt
from PyQt5.QtGui import * from PyQt5.QtWidgets import * from PyQt5.QtCore import * import time class MainWindow(QMainWindow): def __init__(self, *args, **kwargs): super(MainWindow, self).__init__(*args, **kwargs) self.counter = 0 ... Add solution
Best helpers
Ranking is empty