I am creating an app on Linux using python and gtk3 and I don't have standard user interfaces like gnome or lxde or whatever, and in this app I need to change display resolution. I need to create a timeout destroying dialog within my app, so if the resolution was acceptable, user can use ok button but if it was not acceptable, user click on cancel.
But I need time destroying dialog for that because sometime monitor cant handle the selected resolution and user cant see dialog. So I need to destroy the dialog and return to previous resolution by some time, like 10 seconds. So, I want to know what is the best way to do this. Does GTK have some feature for this? I didn't find that. Is it good to create a timer with threading and use that timer to close the dialog? Are there other solutions?