def run(self): print "Displaying" view=QWebView() view.setHtml(self.__html) view.show() while view.isVisible() is True: time.sleep(random.randint(1,5)) del view print "Closing Display."