Questions tagged as 'python'

2
answers

Automatic initialization

I have a program in Python and need it to start automatically with Windows, I could not find any material related to this on the internet.     
asked by 04.06.2015 / 17:22
1
answer

Extract everything using Libarchive

How do I extract all the contents of a compressed file into the current directory? P.S .: The file has folders and files. import libarchive def unpack(file): #?     
asked by 27.11.2014 / 11:59
1
answer

uwsgi configuration for high traffic

I have a django application and I'm having trouble setting up my server for high traffic. It is very slow with few hits. see my configuration: [uwsgi] chdir = /home/meuser/public/meusite.com.br/public_html/ wsgi-file = meusite/wsgi.py processe...
asked by 10.10.2014 / 16:57
1
answer

Check if a tkinter.Text is empty

I'm trying to create a simple notepad, but I have one small problem: when I try to see if the text of an object Text is empty or not: if text_area.get(0.0, tkinter.END) != "": print("Text não vazio") # é sempre executado When I t...
asked by 24.09.2014 / 00:14
1
answer

Create a scan window in MATLAB

I am trying to create in matlab a script that makes a sub-array (3x3 search window) go through a larger array looking for minimum values for each 3x3 cell portion that is parsed. When the script finds this minimum value cell, it places it as the...
asked by 14.09.2014 / 22:52
1
answer

Legend font size in a python chart

I would like to know how to adjust the font size used in a legend in a Python chart using the matplotlib library. I did a search and found this form. plt.legend(loc='upper left', prop={'size':12}) Is there another way to adjust the font siz...
asked by 01.08.2014 / 01:10
1
answer

Text position in Tkinter

Hello. I'm working with Tkinter and I'm at a standstill. I have nine buttons and each prints a number. How can I make sure that after pressing a button, regardless of the button I load, it always shows a number in the same position and when I pr...
asked by 31.07.2014 / 00:57
2
answers

Notification data PagSeguro

I'm trying to integrate PagSeguro with this lib: https://github.com/rochacbruno/python-pagseguro But, I can not access the notification data that Pagseguro sends me. I'm using the following code: notification_code = request.POST['notifica...
asked by 10.06.2014 / 21:31
1
answer

User choices in Tkinter

Hello. I'm trying to create a graphical interface program using Tkinter (I learned a short time ago) and wanted the user to write something in the text input box and press the button. If you write capital B it prints "starting the bios" and if i...
asked by 22.06.2014 / 19:12
0
answers

Django form linked to record

I have two tables in Django (Game and Gol) and I'm trying to create a form for them: class Jogo(models.Model): ativo = models.BooleanField(default = True) dataHoraInicio = models.DateTimeField(verbose_name = 'Data e Hora de Início')...
asked by 04.01.2019 / 20:27