from gasp import *
begin_graphics()
Circle((200, 200), 60)
Line((100, 400), (580, 200))
Box((400, 350), 120, 100)
update_when('key_pressed')
end_graphics()
DragonSlayerX
0
Newbie Poster
Recommended Answers
Jump to PostComment the Circle and Box lines and see if you get a line. Then figure out why only Line() works.
from gasp import * begin_graphics() #Circle((200, 200), 60) Line((100, 400), (580, 200)) #Box((400, 350), 120, 100) update_when('key_pressed') end_graphics()
Jump to Post'when running my IDE' -> usually bad idea to run tests (only) from IDE
Configure a text editor (like context) to launch real Python session or use command line to run the code, or insert at end input statement and double click the file (usually graphics stuff enters in …
All 5 Replies
DragonSlayerX
0
Newbie Poster
woooee
814
Nearly a Posting Maven
DragonSlayerX
0
Newbie Poster
TrustyTony
888
pyMod
Team Colleague
Featured Poster
DragonSlayerX
0
Newbie Poster
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.