A
A
Andrei1penguin12021-05-08 23:30:13
Python
Andrei1penguin1, 2021-05-08 23:30:13

How to run FileChooserIconView in Python code?

Good day, there is a task after clicking the button to open a dialog box with files, that is, filechoosericonview
But the on_press method of the button button in the KV file does not accept more than one level, respectively, the logic should be called from the Python code
At the moment I'm trying to do this:

def load(self):
        f = FileChooserIconView(filters=["DumpStack.log.tmp", "hiberfil.sys", "pagefile.sys", "swapfile.sys"], size=(200, 200))
        return f

But nothing works
Please tell me how can I implement this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrei1penguin1, 2021-05-09
@Andrei1penguin1

popup

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question