*** empty log message ***

This commit is contained in:
Mark Mine 2001-03-14 06:15:27 +00:00
parent 47e50c1ca2
commit 6e7dcb7ff3

View File

@ -171,7 +171,7 @@ class DirectSessionPanel(AppShell):
self.backgroundColor = VectorWidgets.ColorEntry( self.backgroundColor = VectorWidgets.ColorEntry(
bkgrdFrame, text = 'Background Color') bkgrdFrame, text = 'Background Color')
self.backgroundColor['command'] = self.setBackgroundColor self.backgroundColor['command'] = self.setBackgroundColorVec
self.backgroundColor.pack(fill = X, expand = 0) self.backgroundColor.pack(fill = X, expand = 0)
self.bind(self.backgroundColor, 'Set background color') self.bind(self.backgroundColor, 'Set background color')
bkgrdFrame.pack(fill = BOTH, expand = 0) bkgrdFrame.pack(fill = BOTH, expand = 0)
@ -706,7 +706,9 @@ class DirectSessionPanel(AppShell):
## ENVIRONMENT CONTROLS ## ## ENVIRONMENT CONTROLS ##
# Background # # Background #
def setBackgroundColor(self, color): def setBackgroundColor(self, r,g,b):
self.setBackgroundColor(Vec3(r,g,b))
def setBackgroundColorVec(self, color):
base.win.getGsg().setColorClearValue( base.win.getGsg().setColorClearValue(
VBase4(color[0]/255.0, VBase4(color[0]/255.0,
color[1]/255.0, color[1]/255.0,