Created
June 9, 2016 03:21
-
-
Save daltonmenezes/001c9932fba9e86bd4bea3d5c511a47e to your computer and use it in GitHub Desktop.
need to fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gtk | |
def mouse_enter(win, event): | |
win.set_decorated(True) | |
def mouse_leave(win, event): | |
win.set_decorated(False) | |
win = gtk.Window() | |
win.set_decorated(False) | |
win.connect('enter-notify-event', mouse_enter) | |
win.connect('leave-notify-event', mouse_leave) | |
win.connect('delete-event', gtk.main_quit) | |
win.show_all() | |
gtk.main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment