Giter Site home page Giter Site logo

rf-fahad-islam / drawing-pad Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 6 KB

A python Tkinter GUI of the drawing board. You can create art and also save the art on a .pkl file to get it later. Work with line, rectangle, circle, text, color

Python 100.00%
python-3 tkinter-gui drawingboard drawing-pad gui-application

drawing-pad's Introduction

Drawing Pad

A python Tkinter GUI of the drawing board. You can create art and also save the art on a .pkl file to get it later. Work with line, rectangle, circle, text, color

Requirements

Packages or Modules

Use the package manager pip to install pyautogui.

pip install pyautogui

Imports

Some Built-in modules used on this program Such as tkinter, pickle

from tkinter import *
import tkinter.messagebox as tmsg
from tkinter.filedialog import askopenfilename, asksaveasfilename
from pyautogui import prompt
import pickle
from tkinter.colorchooser import askcolor

Usage

1. Draw your art.
2. with custom colors.
3. Create a rectangle, circle, line, text
4. Save the drawing in a pickle file.
5. Retrieve drawing by opening the pickle file.

How saves the data of art

It creates a dictionary of drawing information with several objects. such as below (given the structure of the dictionary):

created_element_info_new = {
        "type": shape, #Shape of drawing like line, circle, rectangle
        "color": color, #Color of the shape
        "prev_x": prev_x, #Starting point from the x axis
        "prev_y": prev_y, #Starting point from the y axis
        "x": x, #End point of the x axis
        "y": y #End point of the y axis
    }

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

For guaranteed pull request:

1 . Describe an issue with the pull request.
2. Adding or suggesting new features
3. Improve the Programme.
4. Fix the Bugs and described
5. Adding functions to do more drawing activities

Please make sure to update tests as appropriate.

Versions

Note: This is developed in the: Python 3.9.0 environment

Contact me

License

Made by Fahad

Thanks for visiting

Please help me to improve the project further.

drawing-pad's People

Contributors

rf-fahad-islam avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.