Questions tagged as 'python-3.x'

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

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
0
answers

Alternative to time.sleep ()

I have a program that is constantly checking if something on the screen has changed place with a while and I would like to do a function that executes an action and waits for the seconds that I indicate to execute it again, the problem th...
asked by 13.10.2018 / 10:52
0
answers

Show only the desired items - OpenCV

The thing is that I've wanted to show the elements that interest me. Let me explain, I have applied a threshold to only see completely white elements. (Having previously applied a gray filter) _,threshold_frame = cv2.threshold(gray,2...
asked by 07.10.2018 / 17:49
1
answer

How to bring a window to the front again PyQt5

I have the following problem. I have a sale with a button whose function is to show a second window, but when I return to the first window the second window that was opened goes to the bottom of the first one and if I click again on the butto...
asked by 15.10.2018 / 06:43
0
answers

Python: re.findall does not display digit strings correctly

My dear ones, I've been in this for awhile and I would like to know what I'm doing wrong. I have this chain    / file / items / show / 687 / file / items / show / 365 / file / items / show / 34 / file / items / show / 35 / file / items / s...
asked by 04.10.2018 / 04:34
1
answer

Notification system

I have this model: and I want the system whenever a user creates an event that notifies the other users, the event created and the name of the user who created it. I do not see how to start implementing, I am using the version of pyt...
asked by 04.10.2018 / 04:08
1
answer

how to show .gif in QLabel Python

Good morning I would like to know if there is any way in which I can show a file.gif in a qlabel. Currently I've only tried this: from PyQt5.QtWidgets import QMainWindow,QApplication,QLabel class Nueva(QMainWindow): def __init__(self...
asked by 16.10.2018 / 17:44
0
answers

how to load scripts from a folder with subfolders in python?

I need a simpler way to load my script since it is used by other people and at the same time different operating system that are between linux and windows at the moment I use execfile () but you have to change the format of The addresses also...
asked by 04.10.2018 / 16:34
0
answers

Use a.any () or a.all ()

I have this code: from PIL import Image import numpy as np import matplotlib.pyplot as plt import FuncionesFiltros as fun Im = Image.open('build.jpg') Im_a = np.array(Im) plt.figure() plt.imshow(Im_a) plt.title('IMAGEN ORIGINAL') plt.axis("of...
asked by 04.10.2018 / 22:30