Questions tagged as 'python'

0
answers

Problems with inheritance in subclasses

I am having problems inheriting certain methods or attributes in subclasses of a given class. The problem arises when printing with the print to check if everything works correctly. But it seems that you are not inheriting variables defin...
asked by 27.10.2017 / 17:42
1
answer

Set up sizers correctly

I'll briefly comment on the problem: I would like to design a GUI that consists of a window of a given size (say 500x600 pixels) and inside it in descending order we would have two rows one under the other with a label and a text box (where t...
asked by 01.03.2018 / 16:15
1
answer

Print date and time in response to the user

I have the date and time format inside the Script, but I see myself in the problem of not being able to include it. As I would in another situation, entering a value within the impression of the message. I have the code in two ways: Form 1 :...
asked by 02.09.2017 / 02:39
1
answer

Move figure title with matplotlib

I am using matplotlib, I have to make a figure with a second x-axis (above the figure), that worked for me with the following code. But when I want to title the figure, it overlays with the name of the top axis. Does anyone know how to solve thi...
asked by 31.07.2017 / 22:23
0
answers

Primary Python running Python files in a chain

I have a process developed step by step with three Python files. I want to make a main Python file that executes the Python files step by step. I've seen that I could do it with the following code: import commands result=commands.getoutput(...
asked by 06.04.2018 / 14:26
0
answers

how to use plt.xticks () to show dates (in days) in python?

I have the problem that I put the date on the x axis but it only gets in one part like the image together all day to the left the data is for the whole year and I want it to show days or months   plt.title("sacramento") plt.xlabel("crime...
asked by 23.08.2017 / 20:38
1
answer

cx_Freeze, "ImportError DLL load failed"

I created a code for an interface with Tkinter , reportlab , openpyxl among others. Everything inside my .py file works very well but when creating an executable (.exe) with cx_Freeze the following error occurs: I appreciate any...
asked by 24.08.2017 / 01:27
1
answer

Python does not record sensor data in csv file

I'm doing a python tutorial with arduino, with an exercise that tries to record the data of two sensors: a motion sensor (digital input), and a potentiometer sensor (analog input). The problem I have is that although when I run the program it...
asked by 11.07.2017 / 10:18
1
answer

How to recover values from a JSON file to treat them with a sript python?

I have a JSON file valorMercado.js with the following values: {"BTC":{"USD":2167.85},"ETH":{"USD":167.88},"DASH":{"USD":102.31}} {"BTC":{"USD":2253.12},"ETH":{"USD":177.76},"DASH":{"USD":109.17}} {"BTC":{"USD":2251.47},"ETH":{"USD":177....
asked by 29.05.2017 / 12:48
1
answer

Problems with URL in Django

I have an application in django that runs perfectly on the test server, but when it comes to deploying with the Mod_WSGI it gives me the following error http://localhost/ingresar?next=/Terry/ The requested URL / enter was not found on this...
asked by 02.03.2018 / 16:16