I was wondering how to make a paint program exclusively from graphics.py not tkinter.py
Here is my code by I don't know how to continue it

from graphics import *
win=GraphWin('Buffet Hot Pot',1200,800)
win.setBackground('whitesmoke')
while True:
click=win.getMouse()
clickX=click.getX()
clickY=click.getY()

I'm not familiar with graphics.py. It apparently does not come with python. I've been using mostly wxPython, but you might want to consider the turtle module that comes with python. It will likely be a lot more robust that graphics.py.

That library seems to be from some book by John Zelle and used in some courses.
Also this appears to be at https://stackoverflow.com/questions/69096268/how-to-create-a-paint-program-in-graphics-py

There's a set of YouTube Tutorials about this library at https://www.youtube.com/watch?v=R39vTAj1u_8

HOWEVER I see it's just a wrapper for Tkinter and many write this is not something you should use beyond an intro to compsci.

Since graphics.py uses tkinter.py then exclusivity is not possible.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.