Questions tagged as 'python'

1
answer

call a code with a button in Pyqt

I'm working with Pyqt and I have my window with 3 buttons. The first and second buttons I want to give them shares. The actions that I need is that they initiate other codes.   link There are both programs. Pantalla.py is the pyqt and I need th...
asked by 02.11.2017 / 18:13
1
answer

Error when plotting voltages and currents with sympy

I'm trying to make a code to graph voltages and currents in alternating current and pull error. This is the code: import sympy from sympy import * from sympy import symbols import matplotlib.pyplot as plt import numpy as np V=float(input("i...
asked by 31.08.2017 / 19:36
1
answer

Change Name from a csv list with python

Before I introduce myself since I'm new here and I'm just starting with this. What I want to solve is the following, I have different folders with images labeled as follows First name Paternal Mother's last name and date of birth example: Luis...
asked by 29.08.2017 / 20:03
1
answer

sublists in python

Good morning, I need help with this statement: "Modify the previous program so that it takes into account the gender of the recipient, for that, they will have to receive a list of lists, with name and gender." The previous program is as f...
asked by 23.11.2017 / 17:08
1
answer

Add reddit / hacker news style votes in Class Based Views

I would like to add something similar to the voting system that many web pages have like StackOverflow, Reddit, Hacker News, etc. I wanted to create a button to do this task in the main template that I have, trying to create a FormView bu...
asked by 06.09.2017 / 23:39
2
answers

Progress bar

Is there a way to make a progress bar in python? Or some bookstore ?. For example: if I have a function that in turn is composed of other functions or a cycle for which I must iterate in an immediate list. I would like to show the user how much...
asked by 21.07.2017 / 05:07
1
answer

configure python 3.6.2 and pycharm professional in ubuntu 16.04

I'm trying to configure python3.6.2 (the one I already have installed) in professional pycharm, and when I try to change the python version when creating a project only versions 2.7 and 3.5 appear. How can I configure this version in pycharm...
asked by 03.08.2017 / 16:51
1
answer

Save file with QLineEdit data using getSaveFileName

I am writing an application using pyqt4 and python 3 . The data entry is by QLineEdit , mainly, and QTextEdit , the data is operated and the results are shown in other QLineEdit . On the monitor works well. Now I w...
asked by 02.07.2017 / 19:57
1
answer

Problems installing selenium on Mac

I'm trying to install selenium on a Mac but I get errors. I'm trying with: sudo pip install selenium I get the following exceptions: Exception: Traceback (most recent call last): File "/Library/Python/2.7/site-packages/pip-...
asked by 03.07.2017 / 20:15
1
answer

Sort CSV Matrix by Python date

I am doing a small development, in which I read from a CSV file in this way: csv = np.genfromtxt('MMRExport.csv',delimiter=",", dtype=str) Then what I do is create lists since I only need 2 columns of the file, one of "date" and another...
asked by 05.07.2017 / 15:08