From 6e7dcb7ff3f285aa86d8fba7268992949e415dcb Mon Sep 17 00:00:00 2001 From: Mark Mine Date: Wed, 14 Mar 2001 06:15:27 +0000 Subject: [PATCH] *** empty log message *** --- direct/src/tkpanels/DirectSessionPanel.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/direct/src/tkpanels/DirectSessionPanel.py b/direct/src/tkpanels/DirectSessionPanel.py index 97e5d9648e..62247a7cf4 100644 --- a/direct/src/tkpanels/DirectSessionPanel.py +++ b/direct/src/tkpanels/DirectSessionPanel.py @@ -171,7 +171,7 @@ class DirectSessionPanel(AppShell): self.backgroundColor = VectorWidgets.ColorEntry( bkgrdFrame, text = 'Background Color') - self.backgroundColor['command'] = self.setBackgroundColor + self.backgroundColor['command'] = self.setBackgroundColorVec self.backgroundColor.pack(fill = X, expand = 0) self.bind(self.backgroundColor, 'Set background color') bkgrdFrame.pack(fill = BOTH, expand = 0) @@ -706,7 +706,9 @@ class DirectSessionPanel(AppShell): ## ENVIRONMENT CONTROLS ## # 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( VBase4(color[0]/255.0, color[1]/255.0,