import constants from os.path import expanduser from PyQt4 import QtGui, QtCore import sqlsync from cmd_satellites import satelliten #startingDir = cmds.workspace(q=True, rootDirectory=True) #destDir = QtGui.QFileDialog.getExistingDirectory(None, # 'Open working directory', # startingDir, # QtGui.QFileDialog.ShowDirsOnly) app = QtGui.QApplication([]) sat = satelliten() #win = QtGui.QWidget() #get folder my_dir = QtGui.QFileDialog.getExistingDirectory( None, "Open a folder", expanduser("~"), QtGui.QFileDialog.ShowDirsOnly ) ssync = sqlsync.sync() syncliste = [] syncliste += ["cmd_inputs"] syncliste += ["out_hue"] syncliste += ["out_Sonos"]
import constants from pyqtgraph.Qt import QtCore, QtGui from mysql_con import mdb_get_table, mdb_set_table app = QtGui.QApplication([]) from pyqtgraph.parametertree import Parameter, ParameterTree from cmd_szenen import szenen from cmd_satellites import satelliten szn = szenen() szn_lst = sorted(szn.list_commands('alle')) cmdLsts = ['out_hue','out_Sonos'] sate = satelliten() cmdLsts += sate.listCommandTable('alle') sets = mdb_get_table(constants.sql_tables.settings.name) class SzenenTreeInputs(): def __init__(self, isInputs = True, cmdTable = None): self.p = None self.name = None self.set_paratree() def __return_enum__(self,eingabe): if (type(eingabe) == str): try: if type(eval(eingabe)) == list or type(eval(eingabe)) == dict or type(eval(eingabe)) == tuple: