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

Updated the Python GTK widget to Python 3 and GTK 3. #221

Closed
wants to merge 1 commit into from

Conversation

PieroV
Copy link

@PieroV PieroV commented Jun 30, 2022

The previous implementation of the Python wrapper around the GTK widget was written for Python 2 and GTK 2.

Python 2 has been EOL for more than two years, but the widget is still very interesting.

Also, the way to integrate GTK and Python has changed a lot during the years.

So, the ZBarGtk widget type is registered automatically by gi, and the only needed step in the bindings is creating and returning the widget somehow.

I also implemented the request video size functionality through new attributes: video-width and video-height.

The only feature the Python wrapper is missing is the possibility to scan a GdkPixbuf, because I could not find a way to register a new method to the __gi__.ZBarGtk type without reimplementing it completely.

Please notice that I have sent this code to Tails, but it is missing the whole licensing comment. The reason is that, while git detects it as a series of changes on pygtk/zbargtkmodule.c, it actually is a complete rewritten from scratch.
In any case, I am the author also of that code.

The previous implementation of the Python wrapper around the GTK widget
was written for Python 2 and GTK 2.
Python 2 has been EOL for more than two years, but the widget is still
very interesting.

Also, the way to integrate GTK and Python has changed a lot during the
years. So, the ZBarGtk widget type is registered automatically by gi,
and the only needed step in the bindings is creating and returning
the widget somehow.

I also implemented the request video size functionality through new
attributes: video-width and video-height.

The only feature the Python wrapper is missing is the possibility to
scan a GdkPixbuf, because I could not find a way to register a new
method to the __gi__.ZBarGtk type without reimplementing it completely.

Signed-off-by: Pier Angelo Vendrame <vogliadifarniente@gmail.com>
@PieroV
Copy link
Author

PieroV commented Jul 2, 2022

Sorry, I did not notice the GIR section on the README. I guess that this can be closed, then.

@PieroV PieroV closed this Jul 2, 2022
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.

None yet

1 participant