danielsweeney Posted November 19, 2020 Share Posted November 19, 2020 Hi Everyone. Has Anyone got any ideas on how to do this? or point me in the right direction of any further reading. Google searching is not coming up with anything. how can I return if a ctrl or shift keystroke is pressed when dropping files in my externaldragdrop.py so i can define different functions depending on modifier key pressed. I'm using the def dropAccept() does anyone know if this returns any other information other than files. I also cant find any information in the docs on this function. cheers for the help. Daniel Quote Link to comment Share on other sites More sharing options...
danielsweeney Posted November 25, 2020 Author Share Posted November 25, 2020 just so people know. I could not find a way to do this with the build-in functions in python 2.7. I had to download a library to do this. the Keyboard python Library to be exact. cheers Quote Link to comment Share on other sites More sharing options...
Drughi Posted November 25, 2020 Share Posted November 25, 2020 just guessing, but have you tried to print kwargs to see what it provides? Quote Link to comment Share on other sites More sharing options...
danielsweeney Posted November 26, 2020 Author Share Posted November 26, 2020 this may make me sound stupid. but I don't know how to print the Kwargs? can you give me an example of how to do this. sounds super useful. cheers Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.