Questions tagged as 'pyqt5'

1
answer

pyqt 5 popup button stop button

I have the following: when executing the file main.py import sys from PyQt5.QtWidgets import QApplication, QMainWindow, QDialog from PyQt5 import uic import subvent class Principal(QMainWindow): def __init__(self): QMai...
asked by 11.05.2018 / 15:36
0
answers

PyQt5 start an app several times from different threads

I'm trying to load an app in Qt that runs from Python, the app only contains a QWebView to show a web page and it has to be able to run several times and from different threads (not at the same time) my code is this: # -*- coding: utf-8 -*- fr...
asked by 08.04.2018 / 21:43
0
answers

Change bar style in matplotlib

Generate a code to analyze the frequency of the sound. But I want to know how I can modify the style of the bars. That is, add effects of pyqt as setGraphicEffect(QT::DropShadowEffect) for example, and add this result within a frame an...
asked by 25.03.2018 / 07:20
1
answer

Error matplotlib.pyplot spectrogram

I'm doing an audio spectrum analyzer in python, however I run into 2 problems. 1.- It does not read the information of mp3 files. 2.- When I change the file that it receives for a file of 2 audio channels it throws me an error. This is my...
asked by 24.03.2018 / 18:03
0
answers

Error and slow response in specgram matplitlib

I've been working on an audio spectrum analyzer in pyqt with python, I have almost finished just that I have 3 last situations, 1.- It is very slow when making the representation of the file, that is to say in general the program is slow...
asked by 26.03.2018 / 03:00
0
answers

Get color by clicking PyQt5

Hello basically I want to know how to get the color of some element by clicking on it. Now try invoking PyQt Color Picker widget: def color_picker(self): color = QtGui.QColorDialog.getColor() self.styleChoice.setStyleSheet("QWidget...
asked by 08.03.2018 / 06:08
0
answers

Generate an audio track animation

I would like to know how to make an animation with any sound like the one in the following image: I have searched how to do it but I can not find much information. This I have tried: import wave import struct import sys import nump...
asked by 23.03.2018 / 08:12
1
answer

Shadow effect error, blur in PyQt

I am generating a small interface but when I try to add a shadow effect (DropShadowEffect) and a blur () effect, it throws me an error: This is my code. import sys from PyQt5.QtWidgets import QMainWindow, QApplication ,QLabel, QGraphicsEffe...
asked by 08.03.2018 / 21:25
0
answers

Personalized Menubar PyQt

Hello, I have a project for which I'm doing a menu bar. However I want to know how I can move the menus that are added and how I can change its content and its background color is to say that it can handle all the properties. I want to get...
asked by 03.03.2018 / 21:04
0
answers

How to import scripted modules with extension .pyw?

recently I try to run on linux (debian 9) an app that I am programming on windows with python3 and PyQt5 The problem, I can not import modules from any script with extension .pyw I explain myself better. I have the files in the followin...
asked by 02.03.2018 / 23:57