def test_presseing_esc_does_not_close_or_clear_the_closable_graph(self):
dummytitle = uniquestring()
title = uniquestring()
self.dummy = CurveDialogWithClosable(wintitle=dummytitle, mainwindow=self.aw)
self.aw.addSubWindow(self.dummy)
self.graph = CurveDialogWithClosable(wintitle=title, mainwindow=self.aw)
self.graph.setClosable(False)
self.aw.addSubWindow(self.graph)
self.aw.show()
self.assertTrue(self.graph.isVisible())
QTest.keyPress(self.graph, Qt.Key_Escape)
self.assertTrue(self.graph.isVisible())
评论列表
文章目录