Reputation: 3
def browse_base(self): option=QFileDialog.Options() file=QFileDialog.getOpenFileName(widget,"Open Single File","CC","All Files(*)",options=option) self.base_addr.lineEdit.setText(file[0])
I have a problem here: 'QLineEdit' object has no attribute 'LineEdit' And i don`t know what i need to do
Upvotes: 0
Views: 1300
Reputation: 3278
It looks like you're assuming that self.base_addr
has a lineEdit
attribute that is a QLineEdit
, but it seems that self.base_addr
itself is already a QLineEdit
(which has no lineEdit
attribute), so that using just self.base_addr.setText(file[0])
should probably work.
However, this may just be the tip of the iceberg, but it is very hard to tell from the code in your question.
Upvotes: 1