Hi, <br><br>I tried the callback example at <a href="http://ldtp.freedesktop.org/user-doc/index.html">http://ldtp.freedesktop.org/user-doc/index.html</a> on Ubunt 9.04 with LDTP 1.7.1.<br><br>It seems as soon as the first callback function 'cb' is triggered. It raise a exception.<br>
<br>>>> onwindowcreate('Replace', cb)<br>1<br>>>> onwindowcreate('dlgFind', cbwithvarargs, 'test', 'var', 'args')<br>1<br>>>> click('*gedit', 'btnReplace')<br>
1<br>>>> Unhandled exception in thread started by <function invokecallback at 0xa4f087c><br>Traceback (most recent call last):<br> File "/var/lib/python-support/python2.6/ldtp.py", line 351, in invokecallback<br>
callback = _callbackFunctions.get (_responseData [1])[0]<br>TypeError: 'NoneType' object is unsubscriptable<br><br>But the callback with arguments works just fine. Is this a bug?<br><br>Another observation is that it seems the default gedit installed with Ubuntu 9.04 only allow a single dialog to be pop-up in front of main window. <br>
<br>click('*gedit', 'btnReplace') # This will pop up the Replace dialog.<br>click('*gedit', 'btnFind') # But this one only highlight the Find button.<br><br>Therefore, this example may not work any more as intended originally.<br>
<br>Thanks<br>Scott<br><br>