Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Jun 1, 2020

Conversation

mclegrand
Copy link
Contributor

@mclegrand mclegrand commented May 30, 2020

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
Copy link
Contributor Author

#85

@mclegrand mclegrand changed the title WIP: Port key-mon to python3 with gi instead of pygtk Port key-mon to python3 with gi instead of pygtk May 30, 2020
@mclegrand
Copy link
Contributor Author

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 scottkirkwood merged commit 3bf4517 into scottkirkwood:master Jun 1, 2020
@scottkirkwood
Copy link
Owner

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants