Python Forum

Full Version: PyGtk3, How to Create “title-changed” signal for Gtk.Window Widget?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i want create signal that runs when title of window changed.

example

    def printTitleChanged(windowName):
        print("title of",windowName, "changed")

    myWindow = gtk.Window("example")
    myWindow.connect("title-changed", printTitleChanged, "myWindow")
i asked this in stackoverflow but it not answered please help me.
thanks.
Does that not work? Do you get errors, or does it just do nothing?
@nilamo,

what are you saying ? i didn't understand.