|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
import validators, os
|
|
|
|
|
import logging
|
|
|
|
|
import re
|
|
|
|
|
|
|
|
|
|
from PyQt5 import QtWidgets
|
|
|
|
|
from PyQt5.QtCore import Qt, QSize, QUrl
|
|
|
|
@ -328,7 +329,13 @@ class ImporterWindow(ArtnetMainWindow):
|
|
|
|
|
Otherwise an empty string
|
|
|
|
|
:return:
|
|
|
|
|
"""
|
|
|
|
|
return self.ui.link_label.text()
|
|
|
|
|
result = re.match('[ a-zA-Z<=>"]*((https|http)://[a-zA-Z0-9]+\.[a-zA-Z0-9]+/[a-zA-Z0-9/]+)',
|
|
|
|
|
self.ui.link_label.text()).groups()
|
|
|
|
|
if result is not None:
|
|
|
|
|
result = result[0]
|
|
|
|
|
else:
|
|
|
|
|
result = ""
|
|
|
|
|
return result
|
|
|
|
|
|
|
|
|
|
def set_presence_label_text(self, presences: list):
|
|
|
|
|
"""
|
|
|
|
@ -1004,7 +1011,7 @@ class ImporterWindow(ArtnetMainWindow):
|
|
|
|
|
logging.info("SpinBox change detected!")
|
|
|
|
|
result = QtWidgets.QMessageBox.question(self, "Switch Image?",
|
|
|
|
|
"Do you really want to skip to image #{1} \"{0}\"?"
|
|
|
|
|
.format(self.__main.all_images[v],
|
|
|
|
|
.format(self.main.all_images[v],
|
|
|
|
|
v))
|
|
|
|
|
if result == QtWidgets.QMessageBox.Yes:
|
|
|
|
|
self.main.curr_image_index = v
|
|
|
|
|