-1

I want to change the text color of msgbox, ynbox and the output text in easyGUI.

Please help!

Ahsan
  • 11,516
  • 12
  • 52
  • 79
Heartzayes
  • 11
  • 1

1 Answers1

0

Quoting from this site:

EasyGUI won;t help change colour, it is just a way of making a command line script act like a GUI - by popping up dialog boxes to capture input and dsplay messages. It replaces raw_input and print with dialogs.

--------code--------

from WConio import textcolor

apples_left = 5

print "There are",(textcolor(4)),apples_left,(textcolor(7)),"left in the basket."

The output works, but there is one snag. I think that I am leaving something out because it has the word "None" on both sides of the variable.

This could be an easy solution for your problem.

You may get WConio from here: http://newcenturycomputers.net/projects/wconio.html

If you face python not found error at the time of installation then you may try following this answer.


UPDATE: There is one more package named Colorama, which is cross-platform for colored terminal text and pretty much stable. You may give it a try as well.

Community
  • 1
  • 1
Shubham Namdeo
  • 1,845
  • 2
  • 24
  • 40