Fix `pg.exec()` to `pg.mkQApp().exec()`
This commit is contained in:
parent
b98244e7d3
commit
67d397d803
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue