*** empty log message ***

This commit is contained in:
Mark Mine 2001-02-15 19:11:13 +00:00
parent 75b1470d8e
commit 25813ab221
5 changed files with 13 additions and 11 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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):

View File

@ -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