Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

pyqt5

  1. menator01

    Python PyQt5 - Python 3.12 Music Player - Introduction

    In this tutorial we will be creating a music player using PyQt5 and Python 3.12 Requirements: PyQt5 Python 3.12 Mutagen What the app will do is allow us to browse for music (mp3) files, add them to a playlist, use a next/prev buttons, and have a volume knob. Although this image was written...
  2. menator01

    Python PyQt5 - Python 3.12 Music Player - Part 1

    In this part we are going to take the MVC (Modal, View, Controller) approach. Modal - Handles all data manipulations View - Handles the display Controller - Handles the communications between Modal and View To install PyQt6 open a terminal and do pip install pyqt6 pip install mutagen To get a...
  3. menator01

    Python PyQt5 - Python 3.12 Music Player - Part 3

    In this part we will be using some more classes from the PyQt5 modules QHBoxLayout QVBoxLayout QListWidget QDial QPushButton Our current script should look something like this now # Do the imports import sys from PyQt5.QtWidgets import (QApplication, QMainWindow, QWidget, QGridLayout...
  4. Lalremruata

    Python How to fetch database row and display in Qlabels with QcomboBox selected value in PyQt5

    I want to fetch database row values and display it in some labels based upon the selected value of combo box. The combo box successfully display 'item_name' from table_1 in the combo box. Now, I want to display 'item_name' relevant row values (like item_price, item_code, item_qty etc) in...
  5. A

    Python How to pass additional information with PyQt5's: QTableWidget::cellDoubleClicked(int row, int column)

    I understand that the cellDoubleClicked method passes the row and the column to a specified function, but how can I send additional information as function arguments? For example the list the table was filled with. if I have the following fuction (with functools.partial imported): def...
  6. Lalremruata

    Python How to avoid Null or empty value in QLineedit of Pyqt5

    I tried to validate the QLineedit not to be empty without success. I did validator = QRegExpValidator(QRegExp(r'[0-9]+')) self.lineEdit_2.setValidator(validator) it is working. But def temp_var(self, text): cur_txt = text if cur_txt == 'Cheque' or cur_txt == 'Wire Transfer' or...
Back
Top Bottom