How To Install pythoncard-tools on Ubuntu 18.04

In this tutorial we learn how to install pythoncard-tools on Ubuntu 18.04. pythoncard-tools is wxPython-based GUI construction framework (optional development tools)

Introduction

In this tutorial we learn how to install pythoncard-tools on Ubuntu 18.04.

What is pythoncard-tools

pythoncard-tools is:

PythonCard is a GUI construction framework for building cross-platform desktop applications on Windows, Mac OS X, and Linux, using the Python language. It is based on the wxPython bindings for the wxWidgets toolkit (formerly known as wxWindows).

This package takes the tools that are part of the PythonCard distribution (such as codeEditor and resourceEditor) and makes them available to be called from the command-line and from the standard Debian menus. It has been split out as a separate package since only developers will need access to the tools directly - packages which depend on PythonCard will just import the tool modules and use what they need.

There are three methods to install pythoncard-tools 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 pythoncard-tools Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install pythoncard-tools using apt-get by running the following command:

sudo apt-get -y install pythoncard-tools

Install pythoncard-tools Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install pythoncard-tools using apt by running the following command:

sudo apt -y install pythoncard-tools

Install pythoncard-tools 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.

sudo aptitude update

After updating apt database, We can install pythoncard-tools using aptitude by running the following command:

sudo aptitude -y install pythoncard-tools

How To Uninstall pythoncard-tools on Ubuntu 18.04

To uninstall only the pythoncard-tools package we can use the following command:

sudo apt-get remove pythoncard-tools

Uninstall pythoncard-tools And Its Dependencies

To uninstall pythoncard-tools and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove pythoncard-tools

Remove pythoncard-tools Configurations and Data

To remove pythoncard-tools configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge pythoncard-tools

Remove pythoncard-tools configuration, data, and all of its dependencies

We can use the following command to remove pythoncard-tools configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge pythoncard-tools

References

Summary

In this tutorial we learn how to install pythoncard-tools package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.