I am again, I have run this script earlier morning and it worked. after restarting my laptop I start to get the following error
AttributeError: 'QDialog' object has no attribute 'QFileDialog'.
Any advice.
thanks
def pushButton_handler(self):
print("Button pressed")
#self.open_dialog_box()
def pushButton_handler(self):
#fileName = Dialog.QFileDialog.getOpenFileName(self, "Open File", "", "CSV Files (*.csv)");
fnames = Dialog.QFileDialog.getOpenFileNames(self, "Open Data File", "", "CSV data files (*.csv)")
self.pathLE.setText(fileName)
df = pd.read_csv(fileName)
print(df)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-1-fa4549e61e23> in pushButton_handler(self)
288 def pushButton_handler(self):
289 #fileName = Dialog.QFileDialog.getOpenFileName(self, "Open File", "", "CSV Files (*.csv)");
--> 290 fnames = Dialog.QFileDialog.getOpenFileNames(self, "Open Data File", "", "CSV data files (*.csv)")
291
292 self.pathLE.setText(fileName)
AttributeError: 'QDialog' object has no attribute 'QFileDialog'