Questions tagged as 'python'

0
answers

how to activate SizeGrip in QMainWindow

I would like to know how I can activate the SizeGrip in the qmainwindow, but without the status bar in the MainWindow. this is what I have done: from PyQt5.QtWidgets import QMainWindow,QApplication from PyQt5 import QtCore class Principa...
asked by 15.10.2018 / 18:26
1
answer

error AttributeError: 'str' object has no attribute 'value' when i use methods in other class Python

I'm doing a project in flask in which I already have about 50 classes with different functionalities, and when I try to return the value of a method in another class I get the error like the following:    AttributeError: 'str' object has no a...
asked by 17.10.2018 / 20:25
0
answers

Cell_type python

I'm learning python and I've run into this in the Spyder IDLE: "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs" "data": { "text/plain": } "output_type". **Ejemplo** "cell_type": "code",...
asked by 12.10.2018 / 17:00
1
answer

Generate a file that stores matches that match the Regular Expression of a reading file

I want to store the data that made match with the regular expression, I want this data to be stored and generate a new file with the name of the file that was read and all these address to a folder import re pattern1 = re.compile(r"(\w+:\w...
asked by 12.10.2018 / 03:28
0
answers

List as an attribute in python!

I have a python task where I should basically create a class that creates a mathematical vector with lists. I do not really know how to formulate a vector as an attribute so that it works correctly. This is what I have been doing until now imp...
asked by 28.10.2018 / 01:56
0
answers

Make a slideshow of images and control the time of this

I want to show different images and each one shows 5 seconds. For now I have tried the two options that have occurred to me, With sleep Doing a while loop that can not be exited until 5 seconds or more have passed. This second option is wo...
asked by 14.10.2018 / 10:07
1
answer

global name 'K_ENTER' is not defined

That error comes to me when I try to press the enter or even when I want to press the space I get the same error ... def Menu(): #Llama a la variable global dificultad global dificultad #Carga y guarda la imagen de la carpeta dibujo...
asked by 10.10.2018 / 09:32
0
answers

Firebase_Admin-Python, how to update data in real time

I currently work with Firebase_Admin that allows me to use the sdk Firebase Manager to be able to use RealtimeDatabase. However, it does not have a function that allows updating the data once the user changes the data in the database. Is t...
asked by 10.10.2018 / 05:13
1
answer

str-int error and do not let it convert

diccionario={1: ['0.18', '0.26', '0.41', '0.11', '0.05'], 2: ['0.34', '0.07', '0.39', '0.16', '0.03']} for persona in range (1,numpersonas+1): filtrada2= [(f,(pes1, pes2, pes3, pes4, pes5)) for (f,(pes1, pes2, pes3, pes4, pes5)) in dicciona...
asked by 10.10.2018 / 08:58
1
answer

How do I correct the error "Non-ASCII character '\ xe2' in file ... but no encoding declared"?

I am using Python 2.7 to run a program that is in Python 3.6. I added it to the interpreters but I still see this error:    File "/ Users / a / Desktop / project porgramacion 2 / proyecto.py", line 17   SyntaxError: Non-ASCII character '\ xe2...
asked by 19.06.2018 / 04:43