Skip to content
Luke edited this page May 7, 2020 · 16 revisions

forthebadge made-with-python
GitHub release PyPI version shields.io GitHub license PyPI pyversions Workflow Status Workflow Status
code style Codacy Badge code maintainability

Welcome to the CanvasPlus wiki!

Here you will find the documentation for the latest version of CanvasPlus

Availability

To start, make sure you have CanvasPlus installed or cloned. You can do this with one of two methods.

Option 1: Pip

Pip install this package

pip install CanvasPlus

Option 2: Github

Download a zip file containing all files.

git clone https://github.com/Luke-zhang-04/CanvasPlus.git

or
Clone the latest stable Release
GitHub release
Screen Shot 2020-04-15 at 11 26 54 PM

Importing

It is advised that you do not import the entire module.

from CanvasPlus import CanvasPlus
CanvasPlus()
import CanvasPlus
CanvasPlus.CanvasPlus()

Setup

After, you can set up with what you normally would, with one change; instead of the Canvas class, use the imported CanvasPlus class

from canvasplus import CanvasPlus #or another import method of your choice (described above)
from tkinter import Tk

root = Tk()
canvas = CanvasPlus(
    root, width = 800, height = 800, background = "white"
)
canvas.pack()
canvas.update()
Clone this wiki locally