Questions tagged as 'python'

0
answers

I have a question, it is because I do not know why the server and client do not connect

"Código Servidor" import socket import threading import sys import time def Enviar_mensaje(): print("Has selecionado la opción 1") Mensaje = input("Escribe algo: ") print(Mensaje) primer_socket.send(Mensaje) def Ver_mensaje():...
asked by 01.09.2018 / 05:26
0
answers

problem with cycle

friends I need to separate the first digit for a number read but I have not been able to do what I've done always separates me the last: try: numero=int(input("Digite un numero entero:")) suma=0 for i in str(numero): suma...
asked by 28.08.2018 / 04:22
0
answers

Copy content from a FRAME in PDF

I have a desktop application created with Tkinter and in Python 3.6 and I have a frame with a scroll bar where I draw 4 graphics with the matplotlib library. I would like to know if there is any way to copy all the content of that frame into a P...
asked by 27.08.2018 / 18:41
0
answers

Error in the recognition script.py

I have an error when executing the promo code.py, I'm doing facial recognition, I already capture the faces I want the problem is the error in a line and honestly I do not know how to fix attached image and the script made in python waiting for...
asked by 28.08.2018 / 18:40
0
answers

QSpinBox range assignment

I have to define a QSPINBOX in pyqt, where the values taken by the QSPINBOX each time the ValueChanged () signal returns is that of a defined vector. For example: vector = [10, 15, 3, 20] In other words, the QSPINBOX in this case...
asked by 28.08.2018 / 16:18
0
answers

connect to oracle database with phyton

I'm trying to connect to an oracle database via 32-bit phyton 3.6.5, but I miss this error: I ping the database and receive a correct answer. I can also connect to the developer correctly. I have also done a tnsping and returns: performed...
asked by 27.08.2018 / 10:15
0
answers

Dialog boxes tkMessageBox in Tkinter PYTHON

Can someone tell me how it is possible to change the options of a dialog in Tkinter? More than changing the options, what I want is to show them in another language. I have a box that shows the options YES, NO and I want it to show YES, NO. How...
asked by 27.08.2018 / 10:47
0
answers

How can I return a .json file in python with flask

I have a method to read the .json I have in a folder inside the api in flask The method in question I pass a directiorio (dir) and I go through it with a for as it is a folder more folders inside and within these latest folders the .json -esta...
asked by 23.08.2018 / 17:26
0
answers

Create CSV from a list of Dictionaries and enclose the data

I have a list of dictionaries like this: lotes = [{'lote': '30045612', 'producto':'nombre_producto1'}, {'lote': '30045613', 'producto':'nombre_producto2'}, {'lote': '30045614', 'producto':'nombre_producto3'}, {'lote'...
asked by 23.08.2018 / 17:21
3
answers

Define correctly a variable to be read in all parts of the code

Good I have this code and I am not clear what parameters I have to pass to the function or which to return. It returns an error that "grayFrame" is not defined. I do not understand if I have to declare it in another way or in another place....
asked by 24.08.2018 / 12:11