#๐Ÿ”’ Trying to use a graphics module and its just not working

34 messages ยท Page 1 of 1 (latest)

boreal marsh
#

Im unsure whats going on Im using the graphics module SimpleGraphics.py i can provide the code if needed and i have it in the same file as the project im working on. The window pops up its just the shapes im trying to create do not

rustic shadowBOT
#

@boreal marsh

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

boreal marsh
#

im just tryna draw a line

#

from SimpleGraphics import *
line(100, 100, 700, 500)

#

this pops up but nothing is drawn

velvet wadi
#

the line is probaby just too dark

boreal marsh
#

ok

#

ima try changing it to bright red rq

boreal marsh
velvet wadi
#

It didn't change the background color?

boreal marsh
#

no

#

the background is still the same colour

#

which i am also confused about

#

i set it too

#

EE4B2B

velvet wadi
#

Might have to do with it being on mac not sure

boreal marsh
#

that was my guess as well

#

im gunna try to run this on my pc and see if anything changes

#

i hope not since i barely use my pc now but oh well

velvet wadi
#

works on mine

boreal marsh
#

yeah ur on windows

velvet wadi
#

right

#

you could also try changing the line color

#

do setOutline("red") before making the line

boreal marsh
#

hmm

#

its working on my p

#

pc

#

this is annoying

#

do you know why this might be happening

velvet wadi
#

no its probably just the way tkinter interacts with mac

rustic shadowBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.