This is not full code as it's not clear what (will) be in the self.drop. It looks it comes from here:
http://stackoverflow.com/questions/38617...e-bindings
TestApp.drops will hold DropLabel.on_dropfile methods., so when a file is droped on TestApp window this will file _on_filedrop event which will trigger handledrops method of the TestApp which will get as arguments reference to the window object and as secon argument - the full path and name of the droped file. handledrops will loop over the drops list and will pass this arguments (star unpacked) to all objects in the drops list. in the SO these are on_filedrop methods.
http://stackoverflow.com/questions/38617...e-bindings
TestApp.drops will hold DropLabel.on_dropfile methods., so when a file is droped on TestApp window this will file _on_filedrop event which will trigger handledrops method of the TestApp which will get as arguments reference to the window object and as secon argument - the full path and name of the droped file. handledrops will loop over the drops list and will pass this arguments (star unpacked) to all objects in the drops list. in the SO these are on_filedrop methods.