Questions tagged as 'pyqt'

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
1
answer

QComboBox.addItems: called with wrong argument types

I have the following code: self.option = QComboBox(self) self.option.addItems(self.getJson) def getJson(self): self.data = {'image' : ['planet.jpg', 'cat.png', 'building.jpg']} return self.data['image'] I want to make the return o...
asked by 22.08.2016 / 20:06
1
answer

How to submit when pressing ENTER on a QLineEdit?

I have a certain QLineEdit in my application that, when a QPushButton is clicked, the text of it is sent to the database. But I would like to be able to add this same event by pressing ENTER on that QLineEdit . How can...
asked by 24.03.2017 / 12:47
1
answer

Is it mandatory to use the decorator pyqtSlot?

When I want to connect a QPushButton to an event, for example, I use a method and add it as callback of event clicked.connect For example: def buildUi(self): self.buttonSubmitText = QtWidgets.QPushButton("Enviar") s...
asked by 24.03.2017 / 13:12
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
0
answers

What safe practices can I take to store a password in desktop applications?

I intend to make an application with Pyqt5 to issue notifications based on an API that I have. The user, of course, in a first access would have to use the login and password, to access the application. I would like to keep this user authenticat...
asked by 03.08.2018 / 22:03
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

How to keep the window created by open PyQT5?

After a long study of the object orientation part, I started to study PyQT5. I was doubtful in the following code: class App(QWidget): def __init__(self): super().__init__() self.title='Hello, world!' self.left=10...
asked by 26.12.2018 / 10:57
1
answer

Capturing date from QDateEdit

I need to get the date of a QDateEdit . I made the designer using Qt Designer, in properties enabled calendarPopup and displayFormat to dd/MM/yyyy . I want to capture this date to insert into a query. I've tried us...
asked by 25.10.2016 / 01:57
1
answer

Problem compiling python in pyqt libraries, with py2exe

I'm trying to compile with py2exe , but when I'll compile from the error. I will give an example of this error, with the programs Python 2.7 64 bits, pyqt4 for Python 2.7, and py2exe for Python 2.7. Follow the example: Crea...
asked by 03.02.2016 / 01:24