Easy Draw Module
  • About the Project
  • Student Developed Art
  • 🐍Python
    • Setup and Install
    • Starter Template
    • Example Code
    • Style Guide
    • Module Reference
      • The Drawing Canvas
      • Colors
      • Drawing Shapes
      • Text and Images
      • Property Getting and Setting
      • Object Methods
      • Event Handling
      • Saving Your Drawing
    • Power Users
    • Issues and Features Coming Soon...
  • Python Curriculum
    • Unit 1: Drawing Basics
    • Unit 2: Drawing Algorithms
    • Unit 3: Functions and Events
  • ☕Java
  • Coming Soon...
  • Java Curriculum
    • Unit 1: Using Easy Draw Objects
    • Unit 2: If Statements and Drawings
    • Unit 3: Iteration and Drawings
    • Unit 4: Methods and Classes to Abstract Drawings
    • Tabs
Powered by GitBook
On this page
  • Using the Button
  • save_canvas() Function

Was this helpful?

Export as PDF
  1. Python
  2. Module Reference

Saving Your Drawing

PreviousEvent HandlingNextPower Users

Last updated 4 years ago

Was this helpful?

Using the Button

You can save your drawing as a PNG file by clicking the "Save Canvas" button. Just be sure to provide the image with a file name. The image will save in your project's current working directory (most likely the same folder as your code).

save_canvas() Function

If you want to programmatically save the canvas, you can use the save_canvas() function.

easy_draw.save_canvas()

The function does launch the a dialog to enter the file's name.

If you want to use the save_canvas() function without launching the dialog each time, you must provide a file name to save the image as.

easy_draw.save_canvas("my_pic")

The image file will save as a .png

🐍