I wanted to create a simple gedit plugin that could save the current file when mouse leaves the text area (just like the <<leave>>
event in tkinter) using python3. I went through wiki but I couldn't get much from it (All I could do was to create a plugin that just showed in plugins menu,nothing more). Can anyone help me with this?
Asked
Active
Viewed 129 times
-3

Rio_Nyx
- 96
- 3
- 7
1 Answers
0
According to the Python plugin HOWTO:
The gedit window based on
Gtk.Window
.
Looking at the documentation for Gtk.Window, it inherits from Gtk.Widget
.
Looking at the signals documentation for Gtk.Widget
, it looks like leave-notify-event
is what you are looking for.

Roland Smith
- 42,427
- 3
- 64
- 94