Questions tagged as 'python-3.x'

1
answer

Treat functions that return multiple values in Python [duplicate]

For example, I have a mergeSort(alist) function that has return return count, blist that is, returns an integer that is the inversion counter and a list of values. When you pass a list 5 4 3 1 2 5 and make prin...
asked by 29.09.2018 / 20:44
0
answers

Python3 no module named tld

I'm trying to use tld link and not able to use it in python3, only in python 2.7, which is not convenient for me, since my whole project is in python3. In the documentation says it's compatible with python3.5 which is what I'm using. What coul...
asked by 30.09.2018 / 16:36
0
answers

Buttons in a Gtk.CellRenderer

I'm trying to make a program that saves some information in a DB, I can display the information in the window without any problem, however I wanted to add 2 buttons per line one "Edit" and another "Delete", however there is no " CellRedererButto...
asked by 30.09.2018 / 19:15
1
answer

Convert Python3.7 to exe [duplicate]

I'm creating a "game" with no graphical interface to distract me from the day-to-day schedule. Using Python3.7.0 and SQLite3. I would like to 'protect' the source code of the game so that you can not make changes that circumvent game steps....
asked by 11.10.2018 / 06:25
0
answers

How do I get a file with a 2D map slice from Google Maps?

I'm developing a Python application that needs to interact with the streets provided by Google Maps. To do this, I need to know exactly the layout of each street (width of each section, curves, intersections, length, direction, etc.). How...
asked by 11.10.2018 / 05:01
2
answers

invalid.syntax appears when the program runs

I have tried to put palavra = '' and the same error continues to appear: lista = [] i = 0 while (palavra != 'Sair') or (palavra != 'sair'): i += 1 palavra = str(input('digite alguma palavra: ') lista.append(palavra) print(li...
asked by 28.09.2018 / 19:57
0
answers

Execute remote CMD commands in python (PSEXEC)

Here is a test where you get the error: import subprocess ip = '192.168.15.5' ipDest = '\\' +ip subprocess.Popen(['psexec', '/s', ipDest, 'cmd'], shell = True) Error presenting:    'psexec' is not recognized as an internal command   or...
asked by 19.09.2018 / 02:46
0
answers

Bringing files, classes and methods from another Python file

I need to bring a class file like the one in class.py: class Despesas(object): def __init__(self): self.Prioridade = Prioridade() self.Situacao = True self.Valor = 0.0 self.Categoria = '' For the View.py...
asked by 18.09.2018 / 04:25
2
answers

Logic to get the lowest read value of the user

What's wrong with my logic? I can not return the smallest value def menor(size): size = size vet = [0] * size menor = 0 for i in range(size): vet[i] = int(input('Digite os valores: ')) if vet[i] > menor:...
asked by 26.03.2018 / 03:39
0
answers

POST method on DONTPAD.COM

Hello, I am creating a bot that daily updates a repository on dontpad.com I used requests but when trying to insert the text, the code simply clears the page and inserts nothing! Just turn it off! import requests url = 'http://dontp...
asked by 18.09.2018 / 16:54