Questions tagged as 'python-3.x'

1
answer

Occupy the full width and height of the screen with a QTableWidget

I am trying to occupy all the width and height of my window with a QTable Widget for this I have: #Mi layout vboxLayout = QtWidgets.QVBoxLayout(self) self.mainLayout = QtWidgets.QGridLayout() vboxLayout.addLayout(self.mainLayout) vboxLayout...
asked by 14.08.2018 / 09:13
1
answer

The while loop never ends and I do not print the result generated in each iteration

I'm new to Python and I have to solve this exercise:    Develop a program for the check function that calculates and returns the REGISTRATION_TIME_TIME_DATE_LABORATE of a worker in a day starting from the parameters TIME_IN_ENTERED AND TIME_I...
asked by 11.12.2016 / 22:56
2
answers

Python does not add or modify data.

Friends of Stackoverflow I need help with this code, because it is not saving me or adding data to the database from the html form but from the / admin I hope you can help me please, thank you MODELS.PY class Cuenta(models.Model): ''' EN...
asked by 10.08.2018 / 15:55
1
answer

Error passing my data to SVR and SVC

I have a problem with my code: I want to use Sklearn's SVR method but mark an error saying that 'SVR' is not a callable object when I use the SVR() function. import numpy as np from sklearn.svm import SVR This is how I use the...
asked by 05.08.2018 / 06:43
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 / 19:09
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 / 05: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 / 11: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 / 19:58
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 / 20:30
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 / 23:51