Tag: PYQT5
import sys from PyQt5.QtWidgets import QApplication, QMainWindow from gui import Ui_MainWindow from PyQt5.QtCore import QTimer class Nem_Gui(QMainWindow): def __init__(self): super(Nem_Gui,self).__init__() self.ui=Ui_MainWindow() self.ui.setupUi(self) self.count=0 self.styleSheet=”QFrame#circular_progress{\n border-radius:150;\n background-color: qconicalgradient(cx:0.5, cy:0.5, angle:90, stop:{STOP_1} rgba(0, 0, 0, 255), stop:{STOP_2} rgba(85, 85, 255, 255));\n}” #CONFIGURAR EL TEMPORIZADOR self.timerbar=QTimer(self) self.timerbar.start(35) self.timerbar.timeout.connect(self.get) def get(self): if self.count>=100: self.timerbar.stop() . . . Read more
Quiero pasar al siguiente elemento haciendo clic en el elemento de la lista y luego en “siguiente”.
Cada vez que intento instalar PyQt5 en PyCharm, recibo este error: Entonces intento ejecutar el comando desde la terminal del sistema, como se sugiere en la captura de pantalla, y obtengo esto: zsh: command not found: pip En su lugar, uso este comando: python3 -m pip install PyQt5 y muestra . . . Read more
Estoy tratando de agregar un elemento en un QComboBox en PyQt5 utilizando Python. Estoy teniendo problemas para agregar datos de la consulta SQL por fila. cursor = cnx.cursor() query = “SELECT buyerID, lastName, firstName, middleName FROM buyer ORDER BY id DESC LIMIT 5” cursor.execute(query) data = cursor.fetchall() item = list() . . . Read more
Utilice MapQuickItem para mostrar un componente en un mapa, la coordinación del quickitem no cambia, pero cuando se modifica el tamaño del mapa (ancho o alto), el quickitem desaparecerá en una mala coordinación, ¿cómo restablecer la coordinación del quickitem (latitud, longitud)? Map { id: map height: 100 // por ejemplo, . . . Read more