Questions tagged as 'python-3.x'

0
answers

Put restrictions on typing a float variable, a string variable, and leaving blanks of the following interface in Python

good morning. I am developing a program in Python that I enter the number of students according to their performance in the notes and generate a statistical graph, and would like to know how to put restrictions with graphical interfaces that...
asked by 12.11.2018 / 03:03
0
answers

how to make requests from ajax to python and sqlite

Hi friends, I have a question which I do not know what to use, I'm new to web programming and I know enough to create a web page, what happens is that I want to make an App and using a compiler of code like cordova which allows me to create an A...
asked by 12.11.2018 / 18:55
0
answers

How to run a script.py as a daemon (in the background) with python?

I have the following python3 script as a basic example: if __name__=="__main__": temperatura = 71 #"función que lee la temperatura del procesador" print("Leyendo temperatura del procesador") if temperatura >= 70 #grados centigr...
asked by 18.11.2018 / 23:34
0
answers

Error QAbstractTableModel (parent: QObject = None): argument 1 has unexpected type 'list'

I'm learning Python. I work in Win8.1 with Python 3.7. I must create a qtableview to show 9 columns of read-only data. Send as a parameter a list like the following: xlista = ['ars 1', 'Ars-s 2', 'Bry 2', 'CALC 3', 'cean 1', 'coll 1', 'cup...
asked by 18.11.2018 / 18:58
0
answers

I want to make a string a JSON

# Import(s) import json def saveLearned(newKnowledge): reply = "hola" mind = "'" + "{" + '"' + newKnowledge + '"' + " : " + '"' + reply + '"' + "}" + "'" json = mind print(json) load = json.load(json) print(load) du...
asked by 18.11.2018 / 19:13
1
answer

Remove the name of the file in Python3

I am working on a program which downloads YouTube videos and converts them to an audio file of any format, either by giving a link or a search term and I have a problem with collecting the name of the downloaded file, since it can be downloaded...
asked by 13.11.2018 / 12:34
0
answers

Error connecting pyodbc to external server

Hi, I'm connecting my application to an external database server sql server 2008 R2 and I can not connect, it gives me the following error    pyodbc.OperationalError: ('HYT00', '[HYT00] [unixODBC] [Microsoft] [ODBC Driver 13 for SQL Server] L...
asked by 10.11.2018 / 17:36
1
answer

I try to replace a few bytes of a binary file, but it does not do it correctly, in Python

Anyone with experience in file manipulation? 1st Code block, create a text file. 2nd Code block, replaces the first letters of the file leaving the rest intact. (ALL CORRECT) The input is only for pausing. 3rd code block, try to...
asked by 11.11.2018 / 22:17
0
answers

How to calculate the total money sold by each vendor, and the number of units sold of each product

Here in the image you will see the approach and the exercise as I carry it. and I also leave the code, just missing the last part of the exercise where you must calculate the total money sold by each seller, and the number of units sold of each...
asked by 10.11.2018 / 20:44
1
answer

problem with the Sorting in a QTableWidget

I'm putting together a table with QTableWidget in PyQt5 .. I set the sortingEnabled to True , but the problem is that it does not sort the numbers well. For example, if I'm 20, 201 and 30, sort them as follows:...
asked by 14.11.2018 / 18:36