Browse Source

*** empty log message ***

Mike Goslin 25 years ago
parent
commit
218df7f2e2
1 changed files with 5 additions and 5 deletions
  1. 5 5
      direct/src/tkpanels/ParticlePanel.py

+ 5 - 5
direct/src/tkpanels/ParticlePanel.py

@@ -90,13 +90,13 @@ class ParticlePanel(AppShell):
             self.toggleSystemGrowsOlder, 0)
         # Vector widgets
         pos = self.createVector3Entry(systemPage, 'Pos',
-                                      'Particle system position',
-                                      command = self.setSystemPos)
+                                      'Particle system position')
+        pos.command = self.setSystemPos
         pos.addMenuItem('Popup Placer Panel', Placer.Placer)
         hpr = self.createVector3Entry(systemPage, 'Hpr',
                                      'Particle system orientation',
-                                      fGroup_labels = ('H', 'P', 'R'),
-                                      command = self.setSystemHpr)
+                                      fGroup_labels = ('H', 'P', 'R'))
+        hpr.command = self.setSystemHpr
         hpr.addMenuItem('Popup Placer Panel', Placer.Placer)
 
         ## FACTORY PAGE ##
@@ -394,8 +394,8 @@ class ParticlePanel(AppShell):
         kw['min'] = min
         kw['initialValue'] = min
         kw['resolution'] = resolution
-        kw['command'] = command
         widget = apply(Floater.Floater, (parent,), kw)
+        widget.command = command
         widget.pack(fill = X)
         self.bind(widget, balloonHelp)
         self.widgetDict['text'] = widget