Questions tagged as 'python'

0
answers

how to leave the focus disabled in a window even though I click on it?

I am programming a virtual keyboard, where I will type by clicking with the mouse. In python2.7 interface qt4 I was able to solve the idea a lot, I could always make it appear, and also make it type in any other window .. The problem is that it...
asked by 20.06.2017 / 17:48
1
answer

Multiprocessing or Multithreading

Good people, recommend what to optimize the code? multiprocessing or multithreading? the script is running in series, but has several for series. Full Code: link     
asked by 04.07.2017 / 18:43
0
answers

How to group numerical sequences?

Friends, I have a csv file with 5k lines which lists shopping transactions. There is an id for each purchase, it happens that for a lot where several purchase transactions are performed there is an id that always starts with the same numerical s...
asked by 10.06.2017 / 00:24
1
answer

Entry, in the same line, of a string without spaces and one with spaces

My program asks that, on entry, on the same line, there is a string with no spaces name, the name of the depositor, and a string that can contain spaces desc, the description of the object deposited. So, after that I create a dictionary to r...
asked by 06.06.2017 / 16:36
1
answer

I made a very simple game in Python but it goes into an infinite loop, someone, could you please help me with that?

#jogo do adivinha# resp = 1 i = 5 x = 0 print ("Tente adivinhar o Número que eu estou pensando.") print ("Você só tem 5 chances e o número está entre 0 e 100.") while resp != 0: print ("") try: a=raw_input...
asked by 06.06.2017 / 00:14
1
answer

Problem when migrating with Python and Django: no such column: forum_thread.slug

I have this problem in my code: OperationalError at /admin/forum/thread/ no such column: forum_thread.slug I've tried to make a million changes and I could not. When I run the command python manage.py makemigrations it return...
asked by 03.06.2017 / 10:26
0
answers

Data entered in SQLite3 is not shown in the PyQT4 application

I made a small desktop application PyQt4 where I insert data into db sqlite3, but when I go to consult the data that was inserted before, they are not on the screen of visualization, only when I leave the application and I go back in to do the q...
asked by 31.05.2017 / 22:18
1
answer

Platform for creating online courses Python and Django

I'm setting up an online course building platform, and I'm using Python and Django. I would like to know if there are already Django libraries for this purpose. One example I'm using is the Taggit library that exists to assist in creating forums...
asked by 01.06.2017 / 20:27
1
answer

Import csv from bucket s3

I'm trying to import this one .csv file from the Amazon S3 bucket using the code below: import csv with open('https://s3.amazonaws.com/carto-1000x/data/yellow_tripdata_2016-01.csv', 'rb') as teste: reader = csv.reader(teste) for linha...
asked by 02.06.2017 / 17:16
0
answers

Javascript execute python code on a console

Hello, I need to run a python from a Javascript, opening the python console and sending a variable. It would be very simple. In Javascript: ExecutarPython(script.py,variavel=valor) So opening a console in python script.py: ValorJavasc...
asked by 22.05.2017 / 13:17