简体   繁体   中英

How to freeze/grayish window in pygtk?

I want main window to "gray, freeze, stop working", when some other window is opened. Is there some default way to do it? Pretty much the same as gtk.Dialog is working.

EDIT: Currently I'm just replacing all contents by a text line, but I guess there should be better way.

You really shouldn't try to make a program become unresponsive. If what you want to do is stop the user from using the window, make the dialog modal: gtk.Dialog.set_modal(True)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM