Port key-mon to python3 with gi instead of pygtk #87
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
after I was a bit shocked to discover that key-mon has been removed from debian and from ubuntu (20.04), I tried to trace it to this, so I tried to port it to python3.
It works currently with a few warnings that I will probably try to trace, and without the transparency behind buttons, and with an ugly rectangle "click indicator" (because of the unported code, see below).
It has currently three important TODO that are related to functionality removed from Gtk2->Gtk3 : gtk.gdk.GC, render_pixmap_and_mask, and shape_combine_mask. These probably have to be redone in pycairo, which is slightly more difficult than what I already did.
I do not have much experience with Gtk or with Cairo (or with Python^^), so if anyone more experienced wants to take on these TODO, it would be perfect, otherwise I'll try to read more about it.