Fix `pg.exec()` to `pg.mkQApp().exec()`

This commit is contained in:
shikishima 2021-05-16 18:11:56 +09:00
parent b98244e7d3
commit 67d397d803
1 changed files with 1 additions and 1 deletions

View File

@ -24,4 +24,4 @@ txtitem2.setData(pos=(1.0, -1.0, 2.0), color=(0.5, 1.0, 0.5, 1.0), text='text2')
gvw.addItem(txtitem2)
if __name__ == '__main__':
pg.exec()
pg.mkQApp().exec()