import gi gi.require_version('Gtk', '3.0') from gi.repository import GObject, Gtk def on_button_click(button): print("Button clicked") button = Gtk.Button(label="Click me") button.connect("clicked", on_button_click) button_handler_id = button.connect("clicked", on_button_click) # Remove the signal handler button.disconnect(button_handler_id)In this example, we create a Gtk.Button object and connect two signal handlers to its "clicked" signal. We use the `connect()` method to attach `on_button_click()` function to the "clicked" event of `button`. We assign the return value of `connect()` method to `button_handler_id` variable to remember the ID of the signal handler. Then, we use the `disconnect()` method to remove the signal handler based on the ID. Overall, `source_remove` is a useful function from the GObject package library in Python that allows developers to remove signal handlers from objects dynamically.