examples icon indicating copy to clipboard operation
examples copied to clipboard

Update main.py

Open jvianna07 opened this issue 3 years ago • 1 comments

Line 2, removed QAction import. Its already imported in QtWidgets

jvianna07 avatar Jul 26 '22 15:07 jvianna07

I appreciate the PR; But I'm not sure that's the case. At least on Linux (PyQt6 6.3.1):

>>> from PyQt6.QtWidgets import *
>>> QAction
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'QAction' is not defined
>>> from PyQt6.QtGui import *
>>> QAction
<class 'PyQt6.QtGui.QAction'>

mherrmann avatar Jul 26 '22 15:07 mherrmann