Closed wavexx closed 5 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.
how can i test the python3 branch
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.
thanx, I'm trying to port into py3, I have come up to bare workable version but much things to be done.
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.
How is this going? Need help?
kinda on hold buzy in other things..
@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?
@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?
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!
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.
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.
Things to be done
here are the screen shot for now and then
port version
old version
Both
python-xlib
andpython-xcb
are currently out-of-date for python 3. This blocks python 3 support in Screenkey.