Questions tagged as 'python'

0
answers

pygame.time.Clock.tick () why not use 60?

Why do most people use 40 instead of 60? 60 fps is no longer considered ideal? Are there any recommendations for using 40? What if I just call the tick method with no parameters?     
asked by 22.10.2017 / 19:40
0
answers

How to install python-yaml?

I installed the python-yaml module in an earlier version that I am using now, using apt-get install python-yaml, but now when I tried to use the module in the new version it says that it does not have the module installed, and when I will instal...
asked by 22.10.2017 / 19:06
0
answers

Python with CGI and WEB

I made a simple python code that displays a version of the user's operating system on a web page and configured my web server running on linux to be compatible with CGI. My webserver runs on a Windows machine. import cgi, cgitb import...
asked by 01.11.2017 / 13:15
1
answer

Error installing pycryptodomex on osmc raspberry pi

When I try to install "pycryptodomex" or "pycryptodome" it gives me this error here at the end, I already checked the header file "stdint.h" and it is in the folder described in the error: arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O...
asked by 17.10.2017 / 13:56
1
answer

Error in pyhon, pyautogui

I created a bot (macro) which has the function of making a few clicks on X time. I made the loop for this. def afkLoop(): #Loop pycontrol.broken() #Função time.sleep(1800) #Timer afkLoop() def broken(): #Função print "["+(str...
asked by 26.10.2017 / 00:51
1
answer

How to get a value from a certain attribute with BeautifulSoup

I'm trying to write a code that picks news headlines from the G1 and prints on the screen. The problem is that G1 uses incomplete termination ( ... ), ex: <a class=(...) title="Marcelo Bretas acolhe pedido de transferência de Sérgio Cabral...
asked by 25.10.2017 / 00:10
1
answer

Function that shows list in reverse order

def imprimeDeTrasParaFrente(lista): if lista == None : return imprimeDeTrasParaFrente(lista.proximo) print lista, class Node(object): def __init__(self, carga=None, proximo=None): self.carga = carga self.prox...
asked by 24.10.2017 / 21:21
1
answer

Graph with values of 2 in 2dB

As I can by these values in the graph of 2 in 2dB, you are leaving one by one import matplotlib.pyplot as plt #============Ber teórico e Simulado sem repetição============================== ber_teorico=[ 0.158655253931, 0.130927296756, 0.1040...
asked by 09.10.2017 / 22:35
0
answers

Tkinter == Label / Msg only have 1 item in the list.How to solve?

Well, the goal is to have all the items in the list in the same label or msg appear. I'm not very experienced at Tkinter, so I do not know if there's a limit to that. Here is some of the code below. prod=['Exemplo-10.00','Exemplo2-20.00','Exem...
asked by 15.10.2017 / 23:23
1
answer

Problem with Celery and Django / Python

I am trying to implement a system of tasks with Celery in Django, but it is giving error and I do not know how to solve ... Error appearing on console: tasks.py from __future__ import absolute_import, unicode_literals from celery...
asked by 12.10.2017 / 19:52