0

How to use background in Python

Like I’m doing a Eid thing in the community and then it says that this is wrong: bg.color (“Lime green”) pls help

18th Jun 2024, 7:41 PM
Hakam Khalil
14 ответов
+ 2
maybe lime green not Lime green
18th Jun 2024, 11:33 PM
Bob_Li
Bob_Li - avatar
+ 1
But I gave U the WHOLE CODE
20th Jun 2024, 8:20 PM
Hakam Khalil
0
this question is not full.... TkInter? customTkInter? turtle? django? .... we are ready to help. please, explain more what you need. thanks
18th Jun 2024, 7:56 PM
Mihaly Nyilas
Mihaly Nyilas - avatar
0
Ok heres the code
18th Jun 2024, 10:39 PM
Hakam Khalil
0
bg.color (“Lime green”) print (“Eid Mubarak everyone!”) print (“عيد موبرك”) print (“May everyone have a happy Eid!”)
18th Jun 2024, 10:40 PM
Hakam Khalil
0
Ok
20th Jun 2024, 2:05 AM
Hakam Khalil
0
It says bg is not idenifies
20th Jun 2024, 2:08 AM
Hakam Khalil
0
Identified
20th Jun 2024, 2:08 AM
Hakam Khalil
0
Then the problem is probably in the previous parts of the code. You have not given us all the info needed, so the best we can do is guess
20th Jun 2024, 2:58 AM
Bob_Li
Bob_Li - avatar
0
now I'm confused. where did bg.color come from?
20th Jun 2024, 11:20 PM
Bob_Li
Bob_Li - avatar
0
Python taught me it
21st Jun 2024, 4:10 PM
Hakam Khalil
0
Sololearn
21st Jun 2024, 4:11 PM
Hakam Khalil
0
you're probably using it out of context. if you are using Tkinter, you have to do a lot of initialization before being able to use bg. You just can't use it on it's own. (you said the entire code is that 4 lines you provided. bg used this way does not make sense.) Learn Python properly, don't guess or copy paste and hope it works. It's not s guessing game.
21st Jun 2024, 4:29 PM
Bob_Li
Bob_Li - avatar
0
No its that im useing the sololearn community
22nd Jun 2024, 2:41 AM
Hakam Khalil