Questions tagged as 'python'

1
answer

error running kivy designer, No module named 'designer'?

how to solve this error in kivy designer? [! [insert description of image here] [2]] [2]     
asked by 07.12.2017 / 19:06
1
answer

Convert shapefile to raster using Python and GDAL library

I am converting a shapefile file to raster , using a Python script and the GDAL library. For this I use two functions: However, my code does not spin. Does anyone know if I'm passing the parameters of the wrong function?...
asked by 22.12.2017 / 14:45
0
answers

How to use the while in the tkinter to make the game of Even or Odd?

I'm starting now and so I'm super lost, this is my code: from random import choice from tkinter import * janela = Tk() janela.title("Jogo do PAR ou IMPAR!") fontPadrao = ("Arial", "10", "bold") def jogar(): pc = [0, 1, 2, 3, 4, 5, 6, 7, 8...
asked by 20.12.2017 / 19:21
2
answers

Program to ask multiplication questions

I want to make a program in Python (2.7.14) that generates two numbers randomly (from 0 to 10), multiply them, ask the result to the user, and display if the result is correct or wrong, until it is typed the string "end", my code looks like thi...
asked by 02.12.2017 / 16:20
1
answer

Open and close multiple tabs in browser with Python

Hello, I need some help. I need this script I have (Python and JS) open a certain number of tabs and after a time interval close and reopen the same tabs again. However, in order not to close the browser I still need one of them to remain open....
asked by 01.12.2017 / 17:52
1
answer

Problem with encode / decode python

I have 2 functions, the first prepares the html and writes to a .txt file so that the second function opens this file and manages an email through outlook. In the body of the message, the content of this html will be placed with the correct form...
asked by 28.11.2017 / 03:24
0
answers

web2py - show variable value with data from a .csv file in view

I have a web2py framework project called ucsalPY with an application called ucsal. The application path is: ucsalPY/application/ucsal (/controllers, /models, /views) In the default.py controller I created the method: nomes={"nome": ['P...
asked by 25.11.2017 / 21:38
1
answer

Error: unhashable type: 'dict_keys', how to solve?

I have a code that accesses a CSV file through a function. I created a second function to change the name of the column header (changeName) and to not have to call it several times changing the parameters of "columnIngles" and "columnPortugues"...
asked by 26.11.2017 / 02:01
1
answer

Send html file to FTP - Python 3.6

I'm sorry for the layman's question but I've researched everywhere without finding a way out. I have the code below and I'm trying to send the files directly to FTP (initially I wanted to do this without having to save locally, but due to the di...
asked by 07.12.2017 / 18:59
1
answer

first-fit, best-fit and worst-fit python

I have to do a software that implements the memory management algorithms first-fit , best-fit and worst-fit , I know their concept, first-fit places the data in first space that fits, best-fit reads all and sel...
asked by 04.12.2017 / 03:59