How to use the klayout.QtWidgets function in klayout

To help you get started, we’ve selected a few klayout examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github KLayout / klayout / testdata / pymod / import_QtSvg.py View on Github external
def test_2(self):
    app = QtWidgets.QApplication([ "progname" ]) 
    q = QtSvg.QSvgWidget()
github KLayout / klayout / testdata / pymod / import_QtWidgets.py View on Github external
def test_2(self):
    a = QtWidgets.QAction(None)
    a.text = "myaction"
    self.assertEqual(a.text, "myaction")
    self.trg = 0
    a.triggered = self.onTrigger
    a.trigger()
    self.assertEqual(self.trg, 17)
    a.trigger()
    self.assertEqual(self.trg, 34)
github KLayout / klayout / testdata / pymod / import_QtWidgets.py View on Github external
def test_1(self):
    self.assertEqual("QAction" in QtWidgets.__all__, True)