pygsear-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygsear] set background color


From: Lee Harr
Subject: Re: [pygsear] set background color
Date: Sun, 23 Mar 2003 02:04:43 +0000

Hi
Is there a way to change the background in penguin mode?
I'd like to define the background color using an (R,G,B) tuple
function like setBackground found in the file Screen.py. When I
copy Screen.py to examples and
>>>from Screen import *
the setBackground function is not found using dir()
TIA
re-v



You can use the penguin's window, something like:

from penguin import *
pete.window.setBackground(color=(220, 50, 35))


or you could use the handle on the window in pygsear.conf


from pygsear.Drawable import Turtle
from pygsear import conf
from pygsear.locals import *

t = Turtle()
conf.window.setBackground(color=BLUE)



I will add a setBackground() method to Turtle in the
next release... good idea.


_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail





reply via email to

[Prev in Thread] Current Thread [Next in Thread]