Skip to content

Commit

Permalink
fix(imports): cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Oct 11, 2024
1 parent a9cebbf commit f83c334
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions qtribu/toolbelt/commons.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# standard
import os

# 3rd party
from PyQt5.QtMultimedia import QMediaContent, QMediaPlayer # noqa QGS103
from qgis.PyQt.QtCore import QUrl
from qgis.PyQt.QtGui import QDesktopServices

# project
from qtribu.__about__ import DIR_PLUGIN_ROOT

try:
from qtribu.logic.web_viewer import WebViewer

Expand Down Expand Up @@ -48,14 +55,6 @@ def open_url_in_webviewer(url: str, window_title: str) -> None:
web_viewer.set_window_title(window_title)


import os

from PyQt5 import QtMultimedia # noqa QGS103
from PyQt5.QtMultimedia import QMediaContent, QMediaPlayer, QSound # noqa QGS103

from qtribu.__about__ import DIR_PLUGIN_ROOT


def play_resource_sound(resource: str, volume: int) -> None:
"""
Play a sound inside QGIS
Expand Down

0 comments on commit f83c334

Please sign in to comment.