Questions tagged as 'python-2.7'

0
answers

How can I auto-fill a text box in Python Tkinter?

I am developing a GUI to manage my databases with Tkinter in Python 2.7. I have the main window where are the text boxes to fill in the data when I create a new record and on the other hand I have a toplevel window in which the user's data of th...
asked by 09.05.2018 / 23:11
0
answers

Using DataFrame in Python

I have a data list that loads a DataFrame, on which mathematical calculations were made, but some of them are empty, is it possible to discriminate between them ?, I am currently using Python 2.7 and the Panda library.     
asked by 07.05.2018 / 21:20
0
answers

Problem with elifs and local variables

I would like to know why the compiler writes me the following: local variable 'randomindexmother1' referenced before assignmen. I've been looking for i based on what I've seen, I do not need to try randomindexmother1. The problem I have in the e...
asked by 14.05.2018 / 06:20
0
answers

Error in date formatting

I have the following example date format: May 7 10:32 What would be the date format that you should use in Python to recognize it? I have used the following code, it is worth mentioning that this is the line that python tells me that it...
asked by 07.05.2018 / 23:56
0
answers

Render in Python Framework Tornado

I'm trying to return data from a function and render to be shown in the front-end, I'm using the tornado framework. equipos = [x[0] for x in run_query("SELECT mac FROM equipos WHERE estado = 1")] for equipo in equipos: if self.current_use...
asked by 08.05.2018 / 21:28
1
answer

portable applications

Very good day, I would like to know if it is possible to make portable applications that is to say that they run on a USB and do not have to be installed on a computer, using python and a database to store data is redundant, and googled a lot an...
asked by 28.04.2018 / 03:35
1
answer

Go through values in a list and put them into a variable in Python

I have a list with data that I want to go through with a for loop and put that data in a variable. I am using the following code: from Read_element_IDs import elementID element_list = elementID() #Comprueba importación de la lista print ele...
asked by 10.04.2018 / 10:05
1
answer

Doubt about an error

I'm getting into the topic of derivatives in python but recently I'm having an inconvenience, it turns out that when I enter the function I get the following error:    NameError Traceback (most recent call last)   ---- > 3 equation = eval...
asked by 14.03.2018 / 03:30
0
answers

Kivy-Buildozer: Aidl not found, please install it.

I have an error compiling my app developed in Python-Kivy. Use: Linux-Mint: 18.3 Python: 2.7 kivi: 1.9.2 Buildozer: 0.34 Running the command buildozer -v android debug or buildozer -v android release at the end the fo...
asked by 06.03.2018 / 13:12
1
answer

The python print does not work for me

You will find the error at the end of the whole Calculator pregunta = raw_input("suma, resta, multiplicacion, division: ") if pregunta == "suma": valor1 = raw_input("Introduce el numero que quieres sumar ") valor2 = raw_input(str(...
asked by 15.03.2018 / 06:27