[Top][All Lists]

[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

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 When I
copy to examples and
>>>from Screen import *
the setBackground function is not found using dir()

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()

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.

reply via email to

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