LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-22-2021, 03:30 AM   #1
phoenix-anna
LQ Newbie
 
Registered: Feb 2021
Posts: 3

Rep: Reputation: Disabled
Where to get type library for Python GdkDrawable (GTK-3)


I cannot import GdkDrawable for GTK-3 (Python). It says the introspection type library is not found.
````
import gi
git.require_version("Gtk","3.0")
from gi.repository import GdkDrawable
````

introspection type lib not found
 
Old 02-22-2021, 04:50 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,677

Rep: Reputation: Disabled
You're posting to the non-*NIX forum section, but your profile shows you're posting from Linux. So what is your OS?

Depending on the distro, the package name may be python3-gi (Debian-based) or python3-gobject (Fedora-based) or pygobject (Slackware-based) or something else.

Quote:
Originally Posted by phoenix-anna View Post
git.require_version("Gtk","3.0")
This obviously should be gi.require_version("Gtk","3.0").

Last edited by shruggy; 02-22-2021 at 06:10 AM.
 
Old 02-22-2021, 05:46 AM   #3
phoenix-anna
LQ Newbie
 
Registered: Feb 2021
Posts: 3

Original Poster
Rep: Reputation: Disabled
That package is already installed
 
Old 02-22-2021, 06:08 AM   #4
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,677

Rep: Reputation: Disabled
From Migrating from GTK+ 2.x to GTK+ 3 on GNOME website:
Quote:
GdkDrawable is gone
GdkDrawable has been removed in GTK+ 3, together with GdkPixmap and GdkImage.

Last edited by shruggy; 02-22-2021 at 06:13 AM.
 
Old 02-22-2021, 11:55 PM   #5
phoenix-anna
LQ Newbie
 
Registered: Feb 2021
Posts: 3

Original Poster
Rep: Reputation: Disabled
Drawable gone

Yes, I discovered that. @Shruggy, the link you provided will help me to discern what features are part of GTK2 and what ones are part of GTK3 only.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Python/Gtk3: dialog.add_button(Gtk.STOCK_OK, Gtk.ResponseType.OK) RockDoctor Programming 2 08-12-2014 07:37 AM
LXer: Python Python Python (aka Python 3) LXer Syndicated Linux News 0 08-05-2009 08:30 PM
python update - Unable to load GTK2 Python bindings: No module named gtk itpedersen Linux - Software 2 10-03-2008 03:44 AM
installing python library's (Python Numeric) Four Linux - Newbie 1 10-16-2005 02:31 PM
WineX, python-gnome, and python-gtk DrD Fedora 0 08-03-2004 12:11 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration