Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
SBriere committed Sep 14, 2018
2 parents e7ffcf8 + d7a6b47 commit 6fa894f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
7 changes: 7 additions & 0 deletions python/OpenIMUApp.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
from PyQt5.QtWidgets import QMainWindow, QWidget, QHBoxLayout
from PyQt5.QtWidgets import QApplication, QDialog, QPushButton, QTreeWidget, QTreeWidgetItem, QMessageBox
from PyQt5.QtGui import QIcon, QFont, QDragEnterEvent
import PyQt5
from PyQt5.QtCore import QLibraryInfo
from pprint import pprint

# from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEnginePage, QWebEngineSettings
from PyQt5.QtQuickWidgets import QQuickWidget
Expand Down Expand Up @@ -719,6 +722,10 @@ def dropEvent(self, event):
app = QApplication(sys.argv)
app.setAttribute(Qt.AA_EnableHighDpiScaling)

print(PyQt5.__file__)
paths = [x for x in dir(QLibraryInfo) if x.endswith('Path')]
pprint({x: QLibraryInfo.location(getattr(QLibraryInfo, x)) for x in paths})

# WebEngine settings
# QWebEngineSettings.globalSettings().setAttribute(QWebEngineSettings.PluginsEnabled, True)
# QWebEngineSettings.globalSettings().setAttribute(QWebEngineSettings.JavascriptCanOpenWindows, True)
Expand Down
10 changes: 8 additions & 2 deletions python/env/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,26 @@ if(WIN32)
PyQtChart
PyQt3D
pypiwin32
# PyInstaller
# Warning, development version for now to fix OSX package
https://github.com/pyinstaller/pyinstaller/tarball/develop
)
else(WIN32)
set (pip_packages
PyQt5
PyQtChart
PyQt3D
# PyInstaller
# Warning, development version for now to fix OSX package
https://github.com/pyinstaller/pyinstaller/tarball/develop
)
endif(WIN32)

set (conda_packages
# PyInstaller
cython
numpy
scipy
PyInstaller
jupyter
sqlalchemy
)
Expand Down Expand Up @@ -70,7 +76,7 @@ else(WIN32)
# TODO - INSTALL WITH CONDA ?
add_custom_target(
python-env
COMMAND ${ENV_PATH}/bin/pip install ${pip_packages}
COMMAND ${ENV_PATH}/bin/pip install --upgrade ${pip_packages}
WORKING_DIRECTORY ${ENV_PATH}
DEPENDS ${ENV_PATH}/bin/python
)
Expand Down
2 changes: 1 addition & 1 deletion python/resources/ui/StartDialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
</sizepolicy>
</property>
<property name="text">
<string>Version 0.2</string>
<string>Version 0.3</string>
</property>
<property name="alignment">
<set>Qt::AlignBottom|Qt::AlignRight|Qt::AlignTrailing</set>
Expand Down

0 comments on commit 6fa894f

Please sign in to comment.