Questions tagged as 'python'

1
answer

How to run a module in Python?

I have a question. A few days ago I'm creating an application with a GUI interface to show movie schedules. It was built in modules, for example a module takes care of the images, searching the web and downloading. Another module takes care of o...
asked by 31.07.2015 / 18:38
1
answer

Library for issuing electronic invoices [closed]

I need a Python library for issuing electronic invoices ... Does anyone there have experience with any? Would you be able to tell me if I need to get a certificate from the government to issue these notes?     
asked by 12.07.2015 / 23:21
1
answer

Create a dictionary in Python receiving values from the database

After accessing the database and having the desired query in case: ... c = conn.cursor() c.execute('SELECT 'tb1'.'Nome', 'tb1'.'Apelido' FROM tb1') How do I create a python dictionary for my above command? dict = {Nome:'Apelido'} ... ?...
asked by 10.07.2015 / 20:19
2
answers

how to exactly use sleep and wakeup in python3? (multithread)

Hello, I'm trying to make the famous producer / consumer problem in python3, transcribing it from my OS book, but I've been experiencing a problem, apparently wait () or something like that, because simply after the first time the threads run...
asked by 02.07.2015 / 01:25
1
answer

Error in django search

Hello, I'm creating a project in django and doing a search for a Taginfo based on a tag that has a foreignkey for Taginfo. I'm getting the following error at line 99 of the view. TypeError at /datasources/get/1/ int() argument must be a string...
asked by 10.06.2015 / 23:12
3
answers

Error writing binary file in Python

I have a program in Python that receives a binary file via parameter and writes this file. However, when it writes the file, some characters it replaces with a series of numbers. Below the original file I get as a parameter: ÐT_Ö / ¤Ð樮kMμû...
asked by 31.05.2015 / 22:00
1
answer

Sort a second column array

How to sort the following matrix according to the x coordinate column? I want you to not only order the coordinates, but to change the lines so that the coordinates of the cities are correct. What I have so far works for the first 3 cities bu...
asked by 22.05.2015 / 13:51
1
answer

How to remove a line from a text file

Hello. I am creating a program that opens, saves or deletes links. However, although I can remove the selected item from the list of links, I can not delete the line from the file that corresponds to the selected item. I researched SOEN and foun...
asked by 30.03.2015 / 01:58
1
answer

Check random numbers (randint)

I started learning python this week and was asking a few questions and in one has several different answers when the digits always return the same thing to me as if the others did not exist This is the code: from random import* espaco = " "...
asked by 09.06.2015 / 04:34
1
answer

Keyboard function does not work PyOpenGL

I have the following code, I wanted to make a simple event to close the application but my keyboard function does not work, I looked elsewhere and I found similar versions. If you can help me, thank you. from OpenGL.GL import * from OpenGL.GLU...
asked by 07.06.2015 / 22:51