I have been trying to create GUI program for my laboratory colleagues.
I have some textboxes on my main window to show files directory that added by user.
I am new in PyQt5 and I want to add feature to my textboxes.
For example, textbox=QLineEdit().. textbox1=.. textbox2=..
So I want to choose textbox before I add file by clicking on the main window then directory of file will be written correct textbox.
I tried to make custom clickablelineedit but I did not succeed.
Is there another way to do it ?
King regards,
EDIT:
class Mutation_Finder():
def __init__(self):
... (Main Window Code)
def openFileNamesDialog(self, **kwargs):
self.options = QFileDialog.Options()
self.options |= QFileDialog.DontUseNativeDialog
self.files, self._= QFileDialog.getOpenFileNames(self,"Dosya Ac","","All Files (*);;.abi,.fasta (*.abi,*fasta)", options=self.options)
def toDoSomething():
if textbox is clicked:
for i in range(len(self.files):
self.textbox.insert(self.files[i])
if textbox1 is clicked:
...
if textbox2 is clicked:
...