more styles

This commit is contained in:
Talley Lambert
2021-04-25 10:17:20 -04:00
parent 3edeac7216
commit 95d836cd8a
7 changed files with 17 additions and 10 deletions

View File

@@ -95,7 +95,6 @@ class DemoWidget(QtW.QWidget):
self.layout().addWidget(right)
self.setGeometry(600, 300, 580, 300)
self.activateWindow()
QtW.QApplication.processEvents()
self.show()
@@ -113,4 +112,7 @@ if __name__ == "__main__":
if "-x" in sys.argv:
app.exec_()
else:
demo.grab().save(str(dest / "demo_widget.png"))
import platform
QtW.QApplication.processEvents()
demo.grab().save(str(dest / f"demo_{platform.system().lower()}.png"))