简体   繁体   中英

gtk+ signal emitted when window/dialog is “presented”

Is there a signal that is emitted when a window/dialog is presented in GTK+?

Example: when issuing this command to the GTK widget dialog:

dialog.present()

is there a resulting signal? Or is there any signal that denotes the "showing" of a window/dialog?

我相信(继承自Widget的)“ show”信号会做到这一点。

The notify::visible signal will be emitted whenever the visibility state changes, ie the window is shown or hidden. The show signal isn't documented but from the source it appears that it is an action signal; you can call it yourself using

dialog.emit('show')

and the widget will show itself, apparently without triggering the notify::visible signal.

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