Questions tagged as 'python-3.x'

0
answers

How can I know if there is already a number on a list?

I want to create a program in which you have to guess a "magic number", but I want to store the numbers entered in a list to know if you enter the number again and print a message that is: "The number already had been admitted ", something like...
asked by 18.07.2018 / 20:42
0
answers

How to insert id in csv reading with DJango

I have the following question, in which way I can insert an id that I have obtained from another table, in reading a .csv file, which I am importing into my database with the django-import-export library. I have the code in the following way...
asked by 16.07.2018 / 17:57
1
answer

python3.5.4 does not start with pythonw, but does it run with the IDLE?

#!/usr/bin/env python3.5.4 ## -*- coding: utf-8 -*- #from tkinter import * # Gestor grafico tkinter import sqlite3 # Motor de Base de datos clv_bd = sqlite3.connect('cddpbd.db') # Abrir Base de Datos...
asked by 17.07.2018 / 03:30
0
answers

Connect database from the view

I have this configuration in the settings.py to work with sql server that works fine DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'almaceninterno', 'USER': 'postgres',...
asked by 16.07.2018 / 15:52
0
answers

error formset Django

I am editing a product form in which I want to replace several sizes in a product. If you have created 5 and when updating the pass 1 single form returns this error:    MultiValueDictKeyError at / edit-article-boutique / test /       "'sizes...
asked by 16.07.2018 / 10:45
0
answers

cx_freeze, how to import specific classes of PyQt5 and not the entire library?

I'm using Cx_Freeze to create .exe files and be able to run on windows without installing the python interpreter. I use the following Script, setup.py: from cx_Freeze import setup, Executable base = None executables = [Executable("Gui.py", bas...
asked by 10.07.2018 / 02:48
0
answers

reading of inertial sensors in independent PI3 and Python 3.x threads

I need to read the values of 2 inertial sensors permanently and in order to read it while executing my main program whose code apart from defining these threads and executing them must request inputs by keyboard and then make comparisons with th...
asked by 10.07.2018 / 02:57
0
answers

Apply stylesheet effect to menus of a qmenubar

I would like to know how I can apply a stylesheet effect to the menu buttons of a qmenubar in pyqt this is the code to change the properties of the QMenuBar: QMenuBar{ background-color: rgb(49,49,49); color: rgb(255,255,255); border: 1p...
asked by 11.07.2018 / 00:06
1
answer

Change variable ID in firebase with the Python Firebase library

I would like to know how I can enter data to firebase so that the structure is for example like this: /Usuarios/Administradores/Angel/Nombre and not this: /Usuarios/Administradores/-LGze8xg3oWiYgzWi6F1/Angel2/Nombre that is, I do not w...
asked by 10.07.2018 / 01:46
1
answer

Django 2 pick up parameter passed in the url inside a ListView

If I have a URL that passes a parameter as follows http://mysite/person/car?parametro=1 In a ListView I get that parameter in the following way Parametro = request.GET.get("id") But if the parameter is passed in the url "person/<i...
asked by 10.07.2018 / 20:09