import ScreenCloud from PythonQt.QtCore import QFile, QSettings, QUrl, QDir from PythonQt.QtGui import QWidget, QDialog, QDesktopServices, QMessageBox from PythonQt.QtUiTools import QUiLoader import time, os, sys ############################### ## This is a temporary fix, should be removed when a newer python version is used ## import logging logging.captureWarnings(True) ############################### ############################### ## Another temporary fix to make sure external typing.py is used with python 2 only ## if sys.version_info < (3, 0): sys.path.append(ScreenCloud.getPluginDir() + chr(QDir.separator()).join(["", "dropbox", "modules", "py2typing"])) ############################### #After sys.path modification import dropbox class DropboxUploader(): def __init__(self): self.uil = QUiLoader() self.loadSettings() if self.access_token: self.client = dropbox.Dropbox(self.access_token) def showSettingsUI(self, parentWidget): self.parentWidget = parentWidget self.settingsDialog = self.uil.load(QFile(workingDir + "/settings.ui"), parentWidget)
from PythonQt.QtCore import QFile, QSettings, QUrl, QDir from PythonQt.QtGui import QWidget, QDialog, QDesktopServices, QMessageBox from PythonQt.QtUiTools import QUiLoader import time, os, sys ############################### ## This is a temporary fix, should be removed when a newer python version is used ## import logging logging.captureWarnings(True) ############################### ############################### ## Another temporary fix to make sure external typing.py is used with python 2 only ## if sys.version_info < (3, 0): sys.path.append( ScreenCloud.getPluginDir() + chr(QDir.separator()).join(["", "dropbox", "modules", "py2typing"])) ############################### #After sys.path modification import dropbox class DropboxUploader(): def __init__(self): self.uil = QUiLoader() self.loadSettings() if self.access_token: self.client = dropbox.Dropbox(self.access_token) def showSettingsUI(self, parentWidget):
import ScreenCloud from PythonQt.QtCore import QFile, QSettings, QUrl, QDir from PythonQt.QtGui import QWidget, QDialog, QDesktopServices, QMessageBox from PythonQt.QtUiTools import QUiLoader import time, os, sys ############################### ## This is a temporary fix, should be removed when a newer python version is used ## import logging logging.captureWarnings(True) ############################### ############################### ## Another temporary fix to make sure external typing.py is used with python 2 only ## if sys.version_info < (3, 0): sys.path.append(ScreenCloud.getPluginDir() + chr(QDir.separator()).join(["", "dropbox", "modules", "py2typing"])) ############################### #After sys.path modification import dropbox class DropboxUploader(): def __init__(self): self.uil = QUiLoader() self.loadSettings() if self.access_token: self.client = dropbox.client.DropboxClient(self.access_token) def showSettingsUI(self, parentWidget): self.parentWidget = parentWidget self.settingsDialog = self.uil.load(QFile(workingDir + "/settings.ui"), parentWidget)