mirror of https://github.com/KLayout/klayout.git
Updating sample macros for Qt6 compatibility
This commit is contained in:
parent
7fa1337cd8
commit
ae2d6fb42f
|
|
@ -32,7 +32,7 @@
|
|||
layout.addWidget(@image)
|
||||
|
||||
button = QPushButton.new('Screenshot', self)
|
||||
button.setFont(QFont.new('Times', 18, QFont::Bold))
|
||||
button.setFont(QFont.new('Times', 18, QFont::Bold.to_i))
|
||||
layout.addWidget(button)
|
||||
|
||||
button.clicked do
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ class ScreenshotDialog(pya.QDialog):
|
|||
layout.addWidget(self.image)
|
||||
|
||||
button = pya.QPushButton('Screenshot', self)
|
||||
button.setFont(pya.QFont('Times', 18, pya.QFont.Bold))
|
||||
button.setFont(pya.QFont('Times', 18, int(pya.QFont.Bold)))
|
||||
layout.addWidget(button)
|
||||
|
||||
# attach the event handler
|
||||
|
|
|
|||
Loading…
Reference in New Issue