Questions tagged as 'python-2.7'

0
answers

How to draw rays in 3D matplotlib?

Is there a way to plot simply by giving only the radius and coordinates of the center? I found on the internet only filled circles and a way to plot rings with sine and cosine functions, but I do not know how to change the coordinate of the cent...
asked by 04.10.2018 / 21:34
0
answers

How to change the contents of a window in PyQT 5?

I'm using PyQT 5 to develop a user interface and I'm having a question: how do I change the contents of an area within the main window? I want to do this because I do not want to have to create a new window every time I want a different layout. T...
asked by 25.09.2018 / 01:38
1
answer

How do I change the contents of a qLabel at runtime?

Good afternoon everyone! I need each qLinedit row to be numbered in ascending order from 1 to 24, I created a qLabel for this, but I do not know how to make it change the numbering according to each line, I could only print a lot of [i] as shown...
asked by 18.09.2018 / 23:04
0
answers

How to transform the string of a QLineEdit into float?

Good evening everyone! I've been trying to transform the string of a Qline edit into float and I can not !! It always returns the error saying that I can not convert string to float. What can I do to get around this? I'm trying like this: if f...
asked by 15.09.2018 / 00:10
0
answers

How to use a function f (x) given via graphical interface to perform calculations?

How do I get the function given by the user, and in the places of x, go changing by the numerical values? I tried the code below, but I am not receiving any value of y: try: #carregamento distribuído axial f(x) if (self.ql_distloads[st...
asked by 12.09.2018 / 19:31
0
answers

Define part scale of a drawing based on the complete drawing in 3D matplotlib

Good evening everyone! I need to create a graphical interface where the user can insert lines and eventually circles at the ends of these lines, as shown in the example, but, depending on the size of the lines, my circles that are fixed at radiu...
asked by 13.09.2018 / 00:41
1
answer

Arrange tabs in pyqt4

Good afternoon everyone! What command do I use to "break" the line of tabs? I would like to have, for example, 3 tabs in one row and 3 tabs just below it. The skeleton I have referring to the tabs is: # layout tab tabs = qg.QTabWidg...
asked by 04.09.2018 / 18:13
0
answers

I can not capture data provided in a lineEdit

Good afternoon everyone! I need to reuse the data from lineEdit's obj and obj1 in another class, but when I try to do this, I get the error: AppCAD 'object has no attribute' coord. Where am I going wrong? import sys import PyQt4.QtCore as qc i...
asked by 21.08.2018 / 20:39
0
answers

Interface to plot points on a graph with matplotlib

Good afternoon guys, I use pyqt4 and python 2.7. How do I create what I described in the title? I'm a beginner, forgive me if my programming or explanation is not the best. Below is the code I have so far class AppCAD(qg.QMainWindow): def...
asked by 21.08.2018 / 19:27
0
answers

Error string index out of range

Good evening everyone! I'm creating a calculator, but when it comes to finding the object that sent the signal to get the last character of the name to display on the lcd display, I get the above error. What am I missing? import sys from Py...
asked by 14.08.2018 / 23:48