Hi, I want to write a macro with an interface based on constraintsGFTPopup. Can anybody advise me on the correct way to start this popup from my macro. I tried: --------------------- class constraintsGFTPopup(CalcAmbigDistConstraintsPopup): def __init__(self, parent,argServer=None, *args, **kw): self.project = argServer.getProject() self.guiParent = parent BasePopup.__init__(self, parent=parent, title='My Distance Constraints', **kw) def constraintsGFT(argServer=None): GFT=constraintsGFTPopup(argServer.parent,argServer=argServer) ------------------- It starts OK, but complains: >>> Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python2.4/lib-tk/Tkinter.py", line 1345, in __call__ return self.func(*args) File "/igb/prog/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/EditMacrosPopup.py", line 130, in runSelectedMacro runMacro(self.macro,self.parent.argumentServer) File "/igb/prog/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Util.py", line 1408, in runMacro command.run() File "/igb/prog/ccpnmr/ccpnmr1.0/python/ccp/general/Command.py", line 83, in run self.func(argServer=self.argumentServer) File "/igb/usr/igb2/ccpn_scripts/MainMacros_igb.py", line 81, in constraintsGFT GFT=constraintsGFTPopup(argServer.parent,argServer=argServer) File "/igb/usr/igb2/ccpn_scripts/MainMacros_igb.py", line 78, in __init__ BasePopup.__init__(self, parent=parent, title='GFT Distance Constraints', **kw) File "/igb/prog/ccpnmr/ccpnmr1.0/python/memops/gui/BasePopup.py", line 125, in __init__ self.initial_focus = self.body(frame) File "/igb/prog/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/CalcAmbigDistConstraintsPopup.py", line 232, in body self.registerNotify(self.updatePeakLists, 'ccp.Nmr.PeakList', func) File "/igb/prog/ccpnmr/ccpnmr1.0/python/memops/editor/BasePopup.py", line 163, in registerNotify cc = self.notifies.get(classname) File "/igb/prog/ccpnmr/ccpnmr1.0/python/memops/gui/BasePopup.py", line 389, in __getattr__ raise AttributeError, "%s instance has no attribute '%s'" % (self.__class__.__name__, name) AttributeError: constraintsGFTPopup instance has no attribute 'notifies' ------------------------------------ How do I find out what attributes need to be set up for a popup? Cheers Igor -- Dr. Igor Barsukov Biological NMR Centre, University of Leicester PO Box 138, University Road, Henry Wellcome Building, Leicester LE1 9HN UK E-mail: [log in to unmask] Tel: +44 (0)116 229 7098 FAX: +44 (0)116 229 7053