mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -04:00
ParticlePanel: fix Pmw error spam when hovering over File menu items
Fixes #552
This commit is contained in:
parent
4e92b708ff
commit
58df4064da
@ -96,22 +96,21 @@ class ParticlePanel(AppShell):
|
|||||||
|
|
||||||
## MENUBAR ENTRIES ##
|
## MENUBAR ENTRIES ##
|
||||||
# FILE MENU
|
# FILE MENU
|
||||||
# Get a handle on the file menu so commands can be inserted
|
# Get a handle on the file menu, and delete the Quit item that AppShell
|
||||||
# before quit item
|
# created so we can add it back after adding the other items.
|
||||||
fileMenu = self.menuBar.component('File-menu')
|
self.menuBar.deletemenuitems('File', 0, 0)
|
||||||
# MRM: Need to add load and save effects methods
|
self.menuBar.addmenuitem('File', 'command',
|
||||||
fileMenu.insert_command(
|
label='Load Params',
|
||||||
fileMenu.index('Quit'),
|
command=self.loadParticleEffectFromFile)
|
||||||
label = 'Load Params',
|
self.menuBar.addmenuitem('File', 'command',
|
||||||
command = self.loadParticleEffectFromFile)
|
label='Save Params',
|
||||||
fileMenu.insert_command(
|
command=self.saveParticleEffectToFile)
|
||||||
fileMenu.index('Quit'),
|
self.menuBar.addmenuitem('File', 'command',
|
||||||
label = 'Save Params',
|
label='Print Params',
|
||||||
command = self.saveParticleEffectToFile)
|
command=lambda s=self:s.particles.printParams())
|
||||||
fileMenu.insert_command(
|
self.menuBar.addmenuitem('File', 'command', 'Quit this application',
|
||||||
fileMenu.index('Quit'),
|
label='Quit',
|
||||||
label = 'Print Params',
|
command=self.quit)
|
||||||
command = lambda s = self: s.particles.printParams())
|
|
||||||
|
|
||||||
# PARTICLE MANAGER MENU
|
# PARTICLE MANAGER MENU
|
||||||
self.menuBar.addmenu('ParticleMgr', 'ParticleMgr Operations')
|
self.menuBar.addmenu('ParticleMgr', 'ParticleMgr Operations')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user