Questions tagged as 'python'

2
answers

Tkinter error 'list' object has no attribute 'get'

I need to make a program that asks for a number "Number of generators" and by clicking on the "accept" button, create a list with the number of spaces equal to the one entered, in addition to creating a matrix of 0 of the dimension before mentio...
asked by 10.06.2017 / 18:46
0
answers

Python synchronization

Could you help me with this code, I need to do "faneuil Hall problem" this says the following:    "There are three kinds of threads: immigrants, spectators, and a one   judge Immigrants must wait in line, check in, and then sit down. A...
asked by 06.06.2017 / 20:09
0
answers

Django: how to get option value from createview class using a form?

I am using CreateView to create objects, but at the same time I need to update another model with the data of a select, but getting the value : views.py: @method_decorator(login_required, name='dispatch') class BitacoraCreateView(Crea...
asked by 06.06.2017 / 21:28
1
answer

My setup.py does not work

My setup.py does not work for me. When I execute it at a command prompt it says: error:no commands supplied . Here I leave the code: # -*- coding: utf-8 -*- from distutils.core import setup import py2exe setup(name="Vive...
asked by 20.06.2017 / 22:16
0
answers

How to show images in a sequence in python

I have a list of images and I want them to be shown one at a time and in order and that each time the program starts, the following is displayed Example: Start the program 1 time Img1 Start the program 2 times Img2 ... and s...
asked by 21.06.2017 / 00:59
1
answer

Why does the window that is not opens? tkinter

archivo=open("USERS.txt","a") from tkinter import * from tkinter import font global User global Password ############################################################ ############################################################ class USER: def...
asked by 04.06.2017 / 20:25
1
answer

Problem with multi-table inheritance in Django

I have a problem implementing multi-table inheritance in Django. In my file models.py I have the following model that is the father: class Concepto(models.Model): id_concepto = models.IntegerField() And these are his children: class E...
asked by 16.06.2017 / 14:45
2
answers

How to get rid of NaN in SFrame python?

I want to get rid of lines from a dataframe that have NaN but when I do item_info.dropna(axis = 0, how='all') , that comes from the pandas.pydata.org documentation, it does not work good: item_info.dropna(axis = 0, how='all')...
asked by 22.06.2017 / 14:57
1
answer

Why does combobox only select the default value, and ignore the selected item?

from tkinter import * from tkinter import ttk ven=Tk() ven.geometry("1600x900+1+0") ven.title("ENVOLVENTE OPERATIVA DE COMPLETAMIENTO") top=Frame(ven,width=1600,height=50,relief="raise",bg="powder blue",bd=10) top.pack(side=TOP) F1=Frame(ven...
asked by 01.06.2017 / 20:56
1
answer

ChunkedEncodingError with requests python

I am trying to connect to an API to receive data that I will use in my app. I use Django 1.9 next to Python 2.7 and I have the project mounted locally with the Apache server, using the < strong> mod_wsgi . To make requests to the AP...
asked by 30.05.2017 / 09:51