Questions tagged as 'python'

1
answer

Doubts in Python - User parameters in query - Mapper in python

Friends of Stackoverflow I am an empirical developer in python and I am doing an application where there is an Administrator and several users, the Administrator assigns a certain amount of records to the operator, he sees them in a list and sel...
asked by 09.08.2018 / 19:46
0
answers

How to package in cx_freeze

I hope you can help me, I'm starting to use cx_freeze, to do the packaging of a job, but I do not know how to add everything I have in total. Content: folder with images folder with a sqlite3 database Standalone folder with a .json...
asked by 03.08.2018 / 17:09
0
answers

Draw the mean on a graph with matplotlib

I am working with the following table In the graphic I have drawn the line of values (blue) of the table and, in red color, I have set the average value of the column Visits made with a loop: media = visitsPerDay['Visits'].mean() m...
asked by 12.08.2018 / 18:45
2
answers

error with cx_freeze python

these are my scripts: import firebase_admin from firebase_admin import db from firebase_admin import credentials import threading def login(): cred = credentials.Certificate("C:/Users/Angel/Desktop/N_Proyect/fire/New_Firebase.json")...
asked by 06.08.2018 / 03:30
0
answers

Adapt different levels of grid so as not to affect the different components of the window

I have the following code to make a calendar selector, but the grid of the month change buttons make the calendar appear separate: def setup(self, y, m): left = Button(self.parent, text='<', command=self.go_prev) self.wid.append(lef...
asked by 06.08.2018 / 09:14
0
answers

Get data from a USB device without using win32-libusb with python

Problem: I try to create a script that allows to fix the ID-Vendor, ID-product, endPoitn (in -out) of any USB device. SCRIPT: import sys import usb.core import usb.util dev1 = usb.core.find(find_all=True) for device in dev1: for...
asked by 02.08.2018 / 17:58
0
answers

Make an xls file downloadable in Python

I would like you to help me know; How can I get the file I am generating downloaded? That is, I click on a button that executes the function and creates a file .XLS (for a spreadsheet) but the user who clicks, at no time knows where that...
asked by 31.07.2018 / 16:03
0
answers

Django project deployment

Hi, I'm deploying my project on a Linux server 16.04 but when I do the following   python3 manage.py collectstatic all right the problem is later when I start running the app that can not find me the static files I get like this in cons...
asked by 31.07.2018 / 18:30
0
answers

hello I have this code and I do not know why I miss this error, when I entered the two! ValueError: invalid literal for int () with base 10: ''

def mostrar(lista): print(lista[0],"|",lista[1],"|",lista[2]) print(lista[3],"|", lista[4], "|",lista[5]) print(lista[6],"|", lista[7], "|",lista[8]) def dipCasilla(pos,lista,jugador): if ingresarMovimiento(pos,lista,jugador)==False: pos...
asked by 12.09.2018 / 22:59
2
answers

I have a problem with Python 3.7 and Sublime when using "input"

1) Enter the following code in Sublime Text 3 print(5) edad = int(input("Ingrese su edad: ")) print(edad) 2) By console I get the following: 5 Ingrese su edad: And regardless of the number you enter, the program does not do anything el...
asked by 12.09.2018 / 21:51