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...
I would like to know how to add all the data in a column of my database.
This is my model:
models.py
class Model(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE, null=True)
id = models.AutoField(primary_k...
How do I want the result to be 4 and not to be 'aa' of the following source code?
set1=input ('Entra letra para multiplicar su valor en numero x2: ')
a=2
b=3
c=4
d=5
e=6
muestra=2*set1
print (muestra)
I have the following Script. For .py extention of python to do GOTO but I do not know if this works in Phyton v3.3.3
os.system('cls')
if Resultados1 == 0:
Resultados1 = 0
goto .Nivel_1
if Resultados2 == 0:
Resul...
As a practice, I designed a database with two types of objects. Each of them has several fields, and some of them are instances of classes that I have created for use. As I add objects to the database, I realize that these fields, instead of bei...
I have the following function to fill a comboBox with the data entered in the form by the user, this works correctly.
def onTextChanged(self, text):
if text:
sql = ("SELECT sec.Nombre as Seccion,sec,idSeccion FROM [Lote] lot \...
I would like to know if it is possible to configure Python to warn of all the errors without having to execute the script. I already know that at the beginning of the execution it does a syntactic analysis. But I think that is not enough.
I m...
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...
I'm doing a script, and I've been stuck in one step.
My question is this:
Suppose that I have the variable prob = 0.8 , what I want is that prob is the variable that you choose between two objects. Example:
prob = 0.8
perro...