Questions tagged as 'pyqt-4'

2
answers

How to play audio with PyQt?

Is there any way to run an audio file with PyQt? Is it possible to do this only with PyQt or do you need to install another library?     
asked by 11.11.2016 / 13:48
1
answer

How to repeat a call of a function of every X seconds in PyQt?

I'm developing a small application in Pyqt4 where I need to load the data into a table coming from a Webservice. This I was able to do quietly. But now, I need to update this every 1 minute. How can I do a repetition of a call to a function e...
asked by 11.11.2016 / 12:14
1
answer

How to make an input password in PyQt4?

To use a field similar to input of HTML in Pyqt4, I usually use QtGui.QLineEdit . But how do I make a field similar to input password, what is a specific field for entering passwords? Can you define the "asterisks" that...
asked by 26.10.2016 / 21:12
3
answers

AttributeError: 'QString' object has no attribute 'strip'

I'm doing a small application in Pyqt4 to understand the operation. In a given part, I'm using a callback function to display a QLabel text that is typed in QtextEdit . This text should be trimmed (remove spaces before and after...
asked by 14.10.2016 / 19:28
1
answer

How to block the resizing of a widget / window?

I'm setting a particular widget according to the size of the secondary monitor. This I was able to do perfectly. However, since I'm new to PyQt, I'd like to know how to block the resizing of the window. I mean, I want the user not to be ab...
asked by 17.10.2016 / 18:14
1
answer

How to set a Tray Icon (tray icon) in a PyQt application?

I'm still new to PyQt and would like to clarify a question: Is there any way to define a Tray Icon in a PyQt application? If so, how can I do it? I need to set some options on this tray icon. Can you do that too?     
asked by 11.11.2016 / 13:04
1
answer

Is it possible to make a "text for voice" with Pyqt?

I'm learning to mess with Pyqt. I'm putting together a simple application, where there will be a voice notification when a new request is available. I would like my application written in Pyqt4 to "transform" a text into a voice. I was abl...
asked by 27.10.2016 / 20:08
0
answers

Display message (QmessageBox) from another class other than the main one in PyQt4

Friends, I ask you for help, I suppose it's simple but I'm having difficulty, because I'm still learning object orientation with PyQt4. I have a main class (Application) separate from the class that forms the main screen (in the ui_principal.py...
asked by 21.11.2017 / 18:45
3
answers

How to convert variable to String?

I have a function that takes a code from the postgreSQL database and displays it set to QLabel with the function setText() . The problem is that this code comes from the database in odd format, between parentheses and comma. Exam...
asked by 14.10.2016 / 21:52
1
answer

I wanted to improve the performance of my program

Good afternoon, I'm currently creating an interface for an application, but I'm having a problem with the function I created. def contornos(self): self.im = cv2.imread(self.imagem) im_copia = self.im.copy() imagem_cinza = cv2....
asked by 14.02.2017 / 19:01