scottkirkwood / key-mon

Automatically exported from code.google.com/p/key-mon
Apache License 2.0
141 stars 38 forks source link

Port key-mon to python3 with gi instead of pygtk #87

Closed mclegrand closed 4 years ago

mclegrand commented 4 years ago

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.

mclegrand commented 4 years ago

85

mclegrand commented 4 years ago

OK, after I got help from @lazka and @ebassi on IRC, I managed to fix the transparency without masks with just gtk CSS, so afaik it's all good now, needs a bit of testing maybe

scottkirkwood commented 4 years ago

Thanks