mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
*** empty log message ***
This commit is contained in:
parent
75b1470d8e
commit
25813ab221
@ -570,9 +570,6 @@ class DirectSessionPanel(AppShell):
|
||||
# Create some buttons in the bottom tray
|
||||
self.createButtons()
|
||||
|
||||
# Clean up things when you destroy the panel
|
||||
interior.bind('<Destroy>', self.onDestroy)
|
||||
|
||||
def createButtons(self):
|
||||
# Grid: enable/disable, xyz/hpr snap, snap to plane
|
||||
# Render mode: wireframe, lights, texture
|
||||
|
@ -279,6 +279,12 @@ class FSMInspector(AppShell):
|
||||
else:
|
||||
self.balloon.configure(state = 'none')
|
||||
|
||||
def onDestroy(self, event):
|
||||
""" Called on FSM Panel shutdown """
|
||||
for si in self.stateInspectorDict.values():
|
||||
self.ignore(self.name + '_' + si.getName() + '_entered')
|
||||
self.ignore(self.name + '_' + si.getName() + '_exited')
|
||||
|
||||
class StateInspector(Pmw.MegaArchetype):
|
||||
def __init__(self, inspector, state, **kw):
|
||||
|
||||
@ -433,6 +439,7 @@ class StateInspector(Pmw.MegaArchetype):
|
||||
def exitedState(self):
|
||||
self._canvas.itemconfigure(self.marker, fill = 'CornflowerBlue')
|
||||
|
||||
|
||||
"""
|
||||
# USING FINITE STATE INSPECTOR
|
||||
|
||||
|
@ -162,11 +162,6 @@ class MopathRecorder(AppShell, PandaObject):
|
||||
self.accept(event, method)
|
||||
|
||||
def createInterface(self):
|
||||
# The interior of the toplevel panel
|
||||
interior = self.interior()
|
||||
# Clean up things when you destroy the panel
|
||||
interior.bind('<Destroy>', self.onDestroy)
|
||||
|
||||
# FILE MENU
|
||||
# Get a handle on the file menu so commands can be inserted
|
||||
# before quit item
|
||||
|
@ -365,9 +365,6 @@ class Placer(AppShell):
|
||||
# Set up placer for inital node path
|
||||
self.selectNodePathNamed('init')
|
||||
|
||||
# Clean up things when you destroy the panel
|
||||
interior.bind('<Destroy>', self.onDestroy)
|
||||
|
||||
self.createButtons()
|
||||
|
||||
def createButtons(self):
|
||||
|
@ -105,6 +105,8 @@ class AppShell(Pmw.MegaWidget, PandaObject):
|
||||
self.__createCommandArea()
|
||||
self.__createMessageBar()
|
||||
self.__createAboutBox()
|
||||
# Add binding for panel cleanup code
|
||||
self.interior().bind('<Destroy>', self.onDestroy)
|
||||
#
|
||||
# Create the parts of the interface
|
||||
# which can be modified by subclasses
|
||||
@ -232,6 +234,10 @@ class AppShell(Pmw.MegaWidget, PandaObject):
|
||||
# Override this method to create the interface for the app.
|
||||
pass
|
||||
|
||||
def onDestroy(self, event):
|
||||
# Override this method with actions to be performed on panel shutdown
|
||||
pass
|
||||
|
||||
def createMenuBar(self):
|
||||
# Creates default menus. Can be overridden or simply augmented
|
||||
# Using button Add below
|
||||
|
Loading…
x
Reference in New Issue
Block a user