File: index.md

package info (click to toggle)
python-guizero 0.6.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,820 kB
  • sloc: python: 5,376; makefile: 28; sh: 17
file content (53 lines) | stat: -rw-r--r-- 1,807 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Installation

guizero is designed to allow new learners to quickly and easily create GUIs for their programs.

If you can download and unzip a file, you can [install guizero](#easy-installation) - **no special permissions or administrator rights are required**.

If you have administrator rights and are connected to the internet, you can use [pip to quickly install guizero](#install-using-pip).

guizero only requires `tkinter` to be installed, which is included with a standard Python installation on all platforms except Linux.

## Easy installation

1. Go to the [Github repo](https://github.com/lawsie/guizero) for guizero

2. Click the green "Clone or download" button and then "Download ZIP"

    ![Download the zip](images/download-zip.png)

3. Unzip the file

4. Open the `guizero-master` folder, then copy the `guizero` folder and paste it into your home directory

    ![Copy the guizero folder](images/copy-guizero.png)

5. That's it! When you write your guizero code, make sure you save it into your home directory.

## Install using pip

### Windows

1. Make sure you have [pip](https://projects.raspberrypi.org/en/projects/using-pip-on-windows) installed.
2. Open a command prompt
3. Type `pip install guizero` and press Enter

## Raspberry Pi

1. Open a terminal window
2. Type `sudo pip3 install guizero` and press Enter

## Mac OS
1. Open a terminal (you can search for it in the Launch Pad)

    ![Mac terminal](images/mac-terminal.png)

2. Type `sudo pip3 install guizero`

    ![Mac install screenshot](images/mac-install.png)

## Linux

1. Open a terminal
2. Install `tkinter` using your distribution's package manager, e.g. `sudo apt install python3-tk`
3. Install guizero using pip by typing `pip3 install guizero` or `sudo pip3 install guizero` if you dont have superuser rights