wavexx / screenkey

A screencast tool to display your keys inspired by Screenflick
https://www.thregr.org/~wavexx/software/screenkey/
GNU General Public License v3.0
757 stars 66 forks source link

Python 3 support #3

Closed wavexx closed 5 years ago

wavexx commented 9 years ago

Both python-xlib and python-xcb are currently out-of-date for python 3. This blocks python 3 support in Screenkey.

wavexx commented 9 years ago

python-xlib is no longer used and Screenkey/keylistener.py works correctly with gi/GLib and python3. pygtk is not available on python3 though, meaning that a full transition to gi/gtk3 is required.

rhoit commented 8 years ago

how can i test the python3 branch

wavexx commented 7 years ago

There's no branch for python 3. The internal key handling library is python3-compatible, but the current GUI is still based on gtk2 and must be rewritten for python-gi.

rhoit commented 7 years ago

thanx, I'm trying to port into py3, I have come up to bare workable version but much things to be done.

wavexx commented 7 years ago

Strictly speaking, I'd like to ditch most of the current gui building code and use something like glade to construct the UI instead. Several parts of the listener also need changes to display mouse activity, which is now recorded but didn't finish displaying the status yet.

aleb commented 7 years ago

How is this going? Need help?

rhoit commented 7 years ago

kinda on hold buzy in other things..

aleb commented 7 years ago

@rhoit Could you summarize what else is needed until it's complete? I might spend some time on it. Is there interest in this - @wavexx at what point would you consider it mergeable?

aleb commented 7 years ago

@wavexx could you comment about https://github.com/rhoit/screenkey/commits/py3-port ? Do you consider it a good start for the port to Python3?

wavexx commented 7 years ago

On Tue, Nov 29 2016, Alex Băluț wrote:

@rhoit Could you summarize what else is needed until it's complete? I might spend some time on it. Is there interest in this - @wavexx at what point would you consider it mergeable?

I'd actually like to get rid of the gi code and use a gui builder for the preferences.

I also have locally uncommitted changes to support mouse clicks which break most of those.

Do not change style unless needed guys!

rhoit commented 7 years ago

I haven't worked much in the preferences, the core thing is runnable, but it doesn't render the symbols. I will get back with screenshot and detail later till tommorow got to run now.

wavexx commented 7 years ago

On Tue, Nov 29 2016, Alex Băluț wrote:

@wavexx could you comment about https://github.com/rhoit/screenkey/commits/py3-port ? Do you consider it a good start for the port to Python3?

I'll take a look in the next days, but I've been quite busy with other projects lately.

I don't actually think the gtk3 port is a big issue, there isn't much code involved. And most of the display code needs to be changed for mouse clicks anyway, so there won't be much left.

The main issue is really just the prefs, and if we migrate to something like glade it won't be an issue.

rhoit commented 7 years ago

Things to be done

here are the screen shot for now and then

port version

screenshot96

screenshot95

screenshot92

old version

screenshot94

screenshot93