I want to build an app, using PySide, that creates a chart with the pyplot library.
I have one button:
qbutton1 = QtGui.QPushButton("Open File")
If the button is clicked, a CSV file is loaded with this function:
def openFile (self):
path, _ = QtGui.QFileDialog.getOpenFileName(self,'Open file','','CSV(*.csv)')
self.loadCsv(path);
self.fileName=path
#self.textlink.setText(str(path)) # this code have trouble , because when i clicked my button it talk that it not attribute in class.
I have a CSV file with 2 columns:
1,4 3,5 4,9
I'd want this chart to be drawn on a QtextEdit like the following:
textbox= QtGui.QTextEdit()