Questions tagged as 'pyqt'

1
answer

python - re-dimension element with a random number

I want to re-dimension the frame that I create, the idea is to take a random number to pass it as value height() , this must be done in a certain cycle in this case 100 times with a value update time each second time.sleep(1) , this...
asked by 18.03.2018 / 05:26
1
answer

Import a UI schema in PySide

I have a PyQt StyleSheet scheme in a separate document that I want to import into a UI. I'm doing the following: style_sheet_file = qc.QFile(os.path.join(os.path.dirname(__file__), 'stylesheets', 'scheme.qss')) style_sheet_file.open...
asked by 17.07.2017 / 14:18
1
answer

Use stylesheet in a qtablewidget to send properties of a cell

I'm trying to change the color of the text and background of an item in a qtablewidget with this code: tabla.item(0,0).setStyleSheet("QTableWidget::item {border: 1px solid red;}") Where table refers to a QTableWidget. However, it does no...
asked by 13.09.2018 / 07:34
2
answers

Click on a button to open a pdf file in python and QT

I'm a newbie programming in Python and my idea is that by clicking on the button that calls "Botonawg" a file pdf is opened. I would like this to work both in windows and systems UNIX . I use GNU-Linux ARCh ....
asked by 05.09.2016 / 00:12
2
answers

How to capture the string of the processes that the python interpreter is executing in cmd?

I do not know if I am very clear with the question, basically I would like to know if it is possible to capture the string of the processes that python is executing inside the cmd, something like the following: Example: Let's say that with...
asked by 29.08.2018 / 04:57
2
answers

How do I keep my app updated with data from my mysql database?

I have read a lot, researched in several pages but I have not been able to find an answer to my question. I have an application made with PyQt, this same app uploads data to a mysql database and downloads them when you indicate it. But the appl...
asked by 23.05.2017 / 01:30
1
answer

render a pygal graphic in a Qlabel

Good morning I'm trying to show a graph in a qlabel with pixmap and pygal, however it does not work, it throws me an error qn QPixmap from PyQt5 import QtCore, QtWidgets, QtSvg import pygal from PyQt5 import uic from PyQt5.QtGui import QPixmap...
asked by 14.09.2018 / 17:47
1
answer

StackedWidget, fails to show interface.ui

I have a problem, I try to use a stackedwidget to change the contents of my main window but not the one in the taskbar. this is my code: from PyQt5.QtWidgets import QMainWindow,QApplication,QMenu from PyQt5 import QtCore,QtGui,QtWidgets fro...
asked by 10.07.2018 / 23:26
1
answer

Use subprocess to use complex ffmpeg commands with pyQt

Using pyQt I want to run ffmpeg. With simple orders, there is no problem. For example: def b3_clicked(): subprocess.call(['ffmpeg', '-i', fileinput, fileoutput + '.mov']) This works well. The problem is when I want to use something comp...
asked by 11.05.2017 / 20:57
1
answer

QTableWidget, center text and change color to a specific VerticalHeader

I'm making a table with QTableWidgetItem , the problem that occurs to me is in VertialHeader I need the text to be centered and to define a different text color to some items; for example the item ( Gastos must be red)....
asked by 01.09.2018 / 07:15