Questions tagged as 'python'

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 / 07: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 / 21:56
0
answers

Pyinstaller onedir: Separate .exe from all other .dll files and folders

I have an application that I would like to package in an .exe file. However, the -F option generates a 50Mb file that is too slow to boot. When I generate the application with the option --onedir the result is better, but the distribut...
asked by 04.08.2018 / 17:43
0
answers

Create query MongoDb with Python2.7

I have the following doubt, I am building a query that performs a massive insertion in mongodb, but part of the data is brought from a function. The following is the function that I use, my problem maybe is with the return def formula(df,W,...
asked by 14.08.2018 / 12:42
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 / 13:55
1
answer

Encryption and decryption of words

I'm doing a program in Python and I need to encrypt a password for a form. My problem is that the most popular cryptographic default method in Python is Crypt, but this is for UNIX. How could I encrypt and decode words in Windows?     
asked by 10.08.2018 / 13:43
1
answer

How to extract the classes found in a real-time capture of object detction with the APi of tensorflow?

Good day, what I want to achieve is to extract in real time the labels of the objects detected in the videocamera to be able to store them in a txt or xml or json. Does anyone have an idea of how I can do it? I'm using python 3.6 with the...
asked by 10.08.2018 / 14:29
0
answers

Insert image in Field blob mysql python 2.7

I want to insert an image in a blob field of a mysql database with python 2.7 (MySQLdb) but it does not work, it does not show any specific error, it just does not insert the value, the table and the product exist, my code is as follows : #!/u...
asked by 15.08.2018 / 22:29
0
answers

How can I create report with Python from mongoDB Excel format?

I am looking for an option to generate a document in excel format, with information from a MongoDB database using the panda module, but until now I do not get it, it only generates the empty document and gives an error Code that I use: impo...
asked by 09.08.2018 / 15:01
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 / 04:43