I have written a program where you have to give the path to directories and files as input. Is it possible to enable any kind of auto-completion when running the program?


Not really, unless it is provided by the OS.
In order to do something like this, I would think you would have to have access to the input stream, to monitor it before anything is actually flushed, which Python doesn't really give you.

Works fine for me on Monday AM. Try pasting the url into the browser.

Now it works, some server side problem looks like.

woooee, In another thread you indicated to use termios. This is the only way I've been able to successfully capture the tab key, and then use my own logic to perform auto-completion. This was for a command-line program, I'm not working with the gui, otherwise I'd use your Tkinter example. Just wanted to say thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.