In addition to the pop-up dialog description below, it seems that it is allowed to display 'Find' dialog and 'Open' dialog simultaneously. So the behavior of pop-up windows depends on the type of pop up dialog. <br>
<br>Thanks<br>Scott<br><div class="gmail_quote">On Sun, Nov 15, 2009 at 11:13 AM, Wang Qi, Scott <span dir="ltr"><<a href="mailto:wangqi.s@gmail.com">wangqi.s@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi, <br><br>I tried the callback example at <a href="http://ldtp.freedesktop.org/user-doc/index.html" target="_blank">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><font color="#888888">Scott<br><br>
</font></blockquote></div><br>