mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-07 03:21:34 +02:00
Updating sample macros for Qt6 compatibility
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user