- How To Install python-gtk-gnash on Ubuntu 18.04
- What is python-gtk-gnash
- Install python-gtk-gnash Using apt-get
- Install python-gtk-gnash Using apt
- Install python-gtk-gnash Using aptitude
- How To Uninstall python-gtk-gnash on Ubuntu 18.04
- Uninstall python-gtk-gnash And Its Dependencies
- Remove python-gtk-gnash Configurations and Data
- Remove python-gtk-gnash configuration, data, and all of its dependencies
- References
- Summary
- How To Install python-gtk2 on Ubuntu 18.04
- What is python-gtk2
- Install python-gtk2 Using apt-get
- Install python-gtk2 Using apt
- Install python-gtk2 Using aptitude
- How To Uninstall python-gtk2 on Ubuntu 18.04
- Uninstall python-gtk2 And Its Dependencies
- Remove python-gtk2 Configurations and Data
- Remove python-gtk2 configuration, data, and all of its dependencies
- References
- Summary
- python-gtk2 on Ubuntu 18.04 LTS (Bionic Beaver)
- 2. Uninstall / Remove python-gtk2 package
- 3. Details of python-gtk2 package
- 5. The same packages on other Linux Distributions
- PyGTK For GUI Programming/Introduction
- What is a GUI? [ edit | edit source ]
- Installing PyGTK [ edit | edit source ]
- Linux [ edit | edit source ]
- Windows [ edit | edit source ]
How To Install python-gtk-gnash on Ubuntu 18.04
In this tutorial we learn how to install python-gtk-gnash on Ubuntu 18.04.
What is python-gtk-gnash
GNU Gnash is a free GPL’d SWF player. It runs as a standalone application on either the desktop or embedded devices, or may be used as a plugin for several popular browsers. It supports playing media from a disk or streaming over a network connection.
GNU Gnash is based on GameSWF and supports most SWF v7 features and some SWF v8 and v9. SWF v10 is not supported by GNU Gnash.
Included in the Gnash is an XML based messaging system, as specified in the SWF specification. This lets a SWF animation communicate over a TCP/IP socket, and parse the incoming XML message. This lets an animation be a remote control for other devices or applications.
This package includes the Python bindings for gnash.
There are three ways to install python-gtk-gnash on Ubuntu 18.04. We can use apt-get , apt and aptitude . In the following sections we will describe each method. You can choose one of them.
Install python-gtk-gnash Using apt-get
Update apt database with apt-get using the following command.
After updating apt database, We can install python-gtk-gnash using apt-get by running the following command:
sudo apt-get -y install python-gtk-gnash
Install python-gtk-gnash Using apt
Update apt database with apt using the following command.
After updating apt database, We can install python-gtk-gnash using apt by running the following command:
sudo apt -y install python-gtk-gnash
Install python-gtk-gnash Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.
After updating apt database, We can install python-gtk-gnash using aptitude by running the following command:
sudo aptitude -y install python-gtk-gnash
How To Uninstall python-gtk-gnash on Ubuntu 18.04
To uninstall only the python-gtk-gnash package we can use the following command:
sudo apt-get remove python-gtk-gnash
Uninstall python-gtk-gnash And Its Dependencies
To uninstall python-gtk-gnash and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove python-gtk-gnash
Remove python-gtk-gnash Configurations and Data
To remove python-gtk-gnash configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge python-gtk-gnash
Remove python-gtk-gnash configuration, data, and all of its dependencies
We can use the following command to remove python-gtk-gnash configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-gtk-gnash
References
Summary
In this tutorial we learn how to install python-gtk-gnash package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.
How To Install python-gtk2 on Ubuntu 18.04
In this tutorial we learn how to install python-gtk2 on Ubuntu 18.04.
What is python-gtk2
This archive contains modules that allow you to use GTK+ in Python programs.
This package is deprecated, you should migrate to using gobject-introspection (GIR) based python bindings instead (PyGObject). https://wiki.gnome.org/Projects/PyGObject/IntrospectionPorting
There are three ways to install python-gtk2 on Ubuntu 18.04. We can use apt-get , apt and aptitude . In the following sections we will describe each method. You can choose one of them.
Install python-gtk2 Using apt-get
Update apt database with apt-get using the following command.
After updating apt database, We can install python-gtk2 using apt-get by running the following command:
sudo apt-get -y install python-gtk2
Install python-gtk2 Using apt
Update apt database with apt using the following command.
After updating apt database, We can install python-gtk2 using apt by running the following command:
sudo apt -y install python-gtk2
Install python-gtk2 Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.
After updating apt database, We can install python-gtk2 using aptitude by running the following command:
sudo aptitude -y install python-gtk2
How To Uninstall python-gtk2 on Ubuntu 18.04
To uninstall only the python-gtk2 package we can use the following command:
sudo apt-get remove python-gtk2
Uninstall python-gtk2 And Its Dependencies
To uninstall python-gtk2 and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove python-gtk2
Remove python-gtk2 Configurations and Data
To remove python-gtk2 configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge python-gtk2
Remove python-gtk2 configuration, data, and all of its dependencies
We can use the following command to remove python-gtk2 configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-gtk2
References
Summary
In this tutorial we learn how to install python-gtk2 package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.
python-gtk2 on Ubuntu 18.04 LTS (Bionic Beaver)
This guide let you learn how to install python-gtk2 package:
2. Uninstall / Remove python-gtk2 package
This tutorial shows how to uninstall python-gtk2 package:
3. Details of python-gtk2 package
python-greenlet-dev (0.4.12-2)
python-greenlet-doc (0.4.12-2)
python-grib (2.0.2-3)
python-gridfs (3.6.1+dfsg1-1)
python-grokcore.component (2.5-0ubuntu1)
python-gssapi (1.4.1-1)
python-gst-1.0-dbg (1.14.5-0ubuntu1~18.04.1)
python-gtextfsm (0.2.1-1)
python-gtk-gnash (0.8.11~git20160608-1.4)
python-gtk2-doc (2.24.0-5.1ubuntu2)
python-gtksourceview2 (2.10.1-3)
python-gtkspellcheck (4.0.5-1)
python-guacamole (0.9.2-2)
python-guacamole-doc (0.9.2-2)
python-guessit (0.11.0-2)
5. The same packages on other Linux Distributions
python-gtk2 (2.24.0-4ubuntu1) Ubuntu 16.04 LTS (Xenial Xerus)
python-gtk2 (2.24.0-5.1+b1) Debian 10 (Buster)
PyGTK For GUI Programming/Introduction
PyGTK is a module for the Python programming language which allows access to the GTK+ Graphical User Interface (GUI) toolkit. From their website:
«GTK+ is a highly usable, feature rich toolkit for creating graphical user interfaces which boasts cross platform compatibility and an easy to use API.»
With the PyGTK binding, you can create advanced graphical layouts so that your users are able to interact easily with the application, and the API (the Application Programming Interface) is itself simple and easy to learn.
This Wikibook aims to guide existing Python programmers who are new to PyGTK and the GTK+ toolkit in using its functions and classes to build user interface windows and ‘widgets’ — the term for items inside the window (for example a push button or a text input box) — and linking program functions to the signals generated by the interface. At the end of the book, we discuss how the creation of GUIs can be made simpler with the Glade XML library and the GTK Designer.
The reader is expected to have knowledge of the Python programming language. The following books are recommended for beginners:
This book is not a complete reference to the GTK API — that can be found on the Gnome website — nor does it discuss building advanced applications. Beginners to the subject should feel right at home, but if you are already familiar with PyGTK, take a look at the chapters on Glade and Threading, as they may supplement your knowledge.
What is a GUI? [ edit | edit source ]
The way in which users interact with programmes has been revolutionized with the window-based, mouse-driven desktops in modern operating systems, creating greater accessibility and ease of use by the simple ‘point-and-click’ approach. A GUI is a window and its collection of widgets — those input boxes, check buttons, radio selections, tabs, text, buttons, and other objects placed inside the window. When the user does almost anything with the window or one of the widgets, even just running the mouse pointer over it, the GUI sends a signal to the programme to alert it that a response may be required. The Python programming language includes a module for creating basic GUIs in its standard set of libraries, it’s named Tkinter, although some don’t consider it very elegant in its appearance, nor feature-rich enough in its capabilities. The GTK+ graphical library is a useful alternative. Whether you intend to write a script to allow the user to perform a simple task such a backing up a few files, or you want to create an advanced RSS reader, creating a GUI is often essential — especially if your intended users may not be familiar with the command line.
GTK+ is the dominant GUI library on the Gnome desktop, so if you are looking to develop applications for the Gnome platform with Python, then knowledge of the PyGTK API is almost certainly necessary.
Installing PyGTK [ edit | edit source ]
We assume you already have the Python interpreter (currently v2.6 or later) installed — if not, see the tutorials above.
Linux [ edit | edit source ]
Ubuntu Users — you already have GTK and PyGTk installed!
Other linux distros — first test if you have PyGTK installed by opening a Python interpreter and typing `import gtk`. If there is an ImportError, then you need to install the module; otherwise it is already installed.
The easiest way to install PyGTK is to use your system’s package manager to download and install `python-gtk2` (see screenshot). This should automatically sort out all GTK dependencies. Once completed, test that it has been installed properly by typing `import gtk` in a Python interpreter — if there are no errors, then you’re good to go.
An alternative way to install PyGTK on linux is to build it from source. Download `pygtk-2.14.1.tar.gz` from ftp.gnome.org, extract the archive and read the `INSTALL` file for instructions on building. You must also make sure you compile any dependencies, for example GTK, before compiling PyGTK.
Windows [ edit | edit source ]
1- Delete any old or partial installations before installing the new packages
2- Install Python using the windows installer. Example: python-2.7.1.msi
3- Install the «all-in-one» package using the windows installer. Example: pygtk-all-in-one-2.22.5.win32-py2.7.msi
That’s it. You’re done.
The following original instructions did not work but the above procedure from a user group did the job. I have left them here so the author can revise them.
The best way to install PyGTK on windows is to download the GTK and PyGTK binaries. First, download `gtk+-bundle_2.18.7-20100213_win32.zip` from ftp.gnome.org, extract and copy to a suitable folder in your system. You will then need to add the `bin` subfolder to the system path.
Then download `pygtk-2.16.0+glade.win32-py2.6.exe` from ftp.gnome.org, and run the installer wizard. Once completed, test that it has been installed properly by typing `import gtk` in a Python interpreter — if there are no errors, then you’re good to go.
PyGTK For GUI Programming | ||
← [[PyGTK For GUI Programming/|]] | Introduction | First Steps → |