src/eric7/Snapshot/SnapWidget.py

branch
eric7
changeset 9624
b47dfa7a137d
parent 9576
be9f8e7e42e0
child 9653
e67609152c5e
equal deleted inserted replaced
9623:9c1f429cb56b 9624:b47dfa7a137d
26 pyqtSlot, 26 pyqtSlot,
27 ) 27 )
28 from PyQt6.QtGui import QDrag, QImageWriter, QKeySequence, QPixmap, QShortcut 28 from PyQt6.QtGui import QDrag, QImageWriter, QKeySequence, QPixmap, QShortcut
29 from PyQt6.QtWidgets import QApplication, QWidget 29 from PyQt6.QtWidgets import QApplication, QWidget
30 30
31 from eric7 import Globals, Preferences 31 from eric7 import Preferences
32 from eric7.EricGui import EricPixmapCache 32 from eric7.EricGui import EricPixmapCache
33 from eric7.EricWidgets import EricFileDialog, EricMessageBox 33 from eric7.EricWidgets import EricFileDialog, EricMessageBox
34 from eric7.SystemUtilities import DesktopUtilities
34 35
35 from .SnapshotModes import SnapshotModes 36 from .SnapshotModes import SnapshotModes
36 from .Ui_SnapWidget import Ui_SnapWidget 37 from .Ui_SnapWidget import Ui_SnapWidget
37 38
38 39
54 self.takeButton.setIcon(EricPixmapCache.getIcon("cameraPhoto")) 55 self.takeButton.setIcon(EricPixmapCache.getIcon("cameraPhoto"))
55 self.copyButton.setIcon(EricPixmapCache.getIcon("editCopy")) 56 self.copyButton.setIcon(EricPixmapCache.getIcon("editCopy"))
56 self.copyPreviewButton.setIcon(EricPixmapCache.getIcon("editCopy")) 57 self.copyPreviewButton.setIcon(EricPixmapCache.getIcon("editCopy"))
57 self.setWindowIcon(EricPixmapCache.getIcon("ericSnap")) 58 self.setWindowIcon(EricPixmapCache.getIcon("ericSnap"))
58 59
59 if Globals.isWaylandSession(): 60 if DesktopUtilities.isWaylandSession():
60 from .SnapshotWaylandGrabber import ( # __IGNORE_WARNING_I101__ 61 from .SnapshotWaylandGrabber import ( # __IGNORE_WARNING_I101__
61 SnapshotWaylandGrabber, 62 SnapshotWaylandGrabber,
62 ) 63 )
63 64
64 self.__grabber = SnapshotWaylandGrabber(self) 65 self.__grabber = SnapshotWaylandGrabber(self)

eric ide

mercurial