mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
*** empty log message ***
This commit is contained in:
parent
47e50c1ca2
commit
6e7dcb7ff3
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user