from core import G from PyQt5 import QtCore, QtGui, QtOpenGL, QtWidgets import glmodule as gl import events3d import qtgui import eventqueue import time import makehuman import getpath from mhversion import MHVersion if False and makehuman.isBuild(): # Set absolute Qt plugin path programatically on frozen deployment to fix # crashes when Qt is on DLL PATH in windows. # No qt.conf file should be present in the application folder! deployment_path = getpath.canonicalPath(getpath.getSysPath()) QtCore.QCoreApplication.addLibraryPath( os.path.join(deployment_path, 'qt4_plugins')) # Plugins will be loaded when QCoreApplication object is constructed. Some # Qt deployments are known to prepend new library paths at this time, such # as /usr/lib/qt4/plugins on some linux platforms, but this is not a likely # case on windows platforms. # Timeout in seconds after which moving the mousewheel will pick a new mouse pos # TODO make this configureable in settings? MOUSEWHEEL_PICK_TIMEOUT = 0.5
import os import log from PyQt4 import QtCore, QtGui, QtOpenGL from core import G import glmodule as gl import events3d import qtgui import queue import time import getpath import makehuman import getpath if False and makehuman.isBuild(): # Set absolute Qt plugin path programatically on frozen deployment to fix # crashes when Qt is on DLL PATH in windows. # No qt.conf file should be present in the application folder! deployment_path = getpath.canonicalPath(getpath.getSysPath()) QtCore.QCoreApplication.addLibraryPath(os.path.join(deployment_path,'qt4_plugins')) # Plugins will be loaded when QCoreApplication object is constructed. Some # Qt deployments are known to prepend new library paths at this time, such # as /usr/lib/qt4/plugins on some linux platforms, but this is not a likely # case on windows platforms. # Timeout in seconds after which moving the mousewheel will pick a new mouse pos # TODO make this configureable in settings? MOUSEWHEEL_PICK_TIMEOUT = 0.5 class Modifiers: