16 lines
832 B
Markdown
16 lines
832 B
Markdown
Dragging Stuff Around
|
|
|
|
This is where the Graph Element really begins to open up some powerful applications. In this short drawing we're creating a paint program where you can drag with your mouse to create shapes and move them around on the Graph surface.
|
|
|
|
Also demonstrated are the cursors that can be set. When moving things, the dursor is changed into a movement cursor.
|
|
|
|
To run the program without the code on the screen, use this link to get a much larger view:
|
|
https://pysimplegui.trinket.io/sites/graph-drawing-and-dragging
|
|
|
|
Here's what it looks like on Windows
|
|
|
|
![SNAG-0621.jpg](/api/files/5e02cf9942fe226a4ea7ae18/snag-0621.jpeg "SNAG-0621.jpg")
|
|
|
|
|
|
<iframe src='https://trinket.io/embed/pygame/3dc5fee958?start=result' width='100%' height='600' frameborder='0' marginwidth='0' marginheight='0' allowfullscreen></iframe>
|