Questions tagged as 'python'

0
answers

How can I auto-fill a text box in Python Tkinter?

I am developing a GUI to manage my databases with Tkinter in Python 2.7. I have the main window where are the text boxes to fill in the data when I create a new record and on the other hand I have a toplevel window in which the user's data of th...
asked by 09.05.2018 / 23:11
0
answers

Use matplotlib.pyplot in raspberry pi 3B

Good morning, I'm working on raspberry pi 3B, to create a heat map, from a matrix that I generate with numpy, I need to graph it using matplotlib, seeing some examples do the importing like this: import matplotlib.pyplot as plt The problem...
asked by 08.05.2018 / 17:08
1
answer

How to consume API Rest Django using angular?

I am new to python and I am starting to develop a web application with django, I would like to use angular in the frontend but I have not found a simple example where they explain how to integrate them correctly. Any recommendation would be v...
asked by 08.05.2018 / 22:35
0
answers

"Could not import the PyAudio C module '_portaudio'" when trying to import pyaudio in Python

I'm trying to import pyaudio . I installed portaudio with the command: brew install portaudio and I installed pyaudio with pip . Now I try to import pyaudio and python shows me the error:    Could n...
asked by 08.05.2018 / 23:17
0
answers

Problem with elifs and local variables

I would like to know why the compiler writes me the following: local variable 'randomindexmother1' referenced before assignmen. I've been looking for i based on what I've seen, I do not need to try randomindexmother1. The problem I have in the e...
asked by 14.05.2018 / 06:20
0
answers

Insert a terminal other than xterm in a Frame of a GUI built in Tkinter

I was able to insert an xterm terminal in a Frame of a Tkinter GUI with the following code: Frame2 = Frame(master) Frame2.pack(fill=BOTH, expand=YES) wid = Frame2.winfo_id() os.system('xterm -into %d -hold -geometry 300x10 -sb &' % wid)...
asked by 06.05.2018 / 13:59
1
answer

do search with Django and JQuery

I'm trying to create a product search engine my model is this class Producto(models.Model): nombre = models.CharField(max_length=50, null=False, blank=False) categoria = models.ForeignKey(Categoria, null=False, blank=False, on_delete=models.CA...
asked by 06.05.2018 / 05:51
1
answer

Binary trees with Tkinter

I have to create a binary tree with tkinter. I have a code to create the AVL binary tree but I also have to "Graph with tkinter" and search and I can not     
asked by 06.05.2018 / 21:13
0
answers

Error in date formatting

I have the following example date format: May 7 10:32 What would be the date format that you should use in Python to recognize it? I have used the following code, it is worth mentioning that this is the line that python tells me that it...
asked by 07.05.2018 / 23:56
0
answers

Why do I get this error when installing the reportlab library in django 1.11?

I want to use what is the Reportlab library in django, but I get an error when trying to install it I use the pip install reportlab command because this is developing in a windows environment. But this error comes out when you are installing...
asked by 04.05.2018 / 14:22