##// END OF EJS Templates
Force PySide2 usage for QtConsole...
jeandet -
r1503:3d021c06fb3c
parent child
Show More
@@ -1,11 +1,12
1 # This Python file uses the following encoding: utf-8
1 # This Python file uses the following encoding: utf-8
2 import os
2 import os
3 import os
4 os.environ['QT_API'] = 'pyside2'
3 print(os.getcwd())
5 print(os.getcwd())
4 import sys
6 import sys
5 from PySide2.QtWidgets import QApplication, QMainWindow, QDockWidget
7 from PySide2.QtWidgets import QApplication, QMainWindow, QDockWidget
6 from PySide2.QtCore import QSize, Qt
8 from PySide2.QtCore import QSize, Qt
7 from PySide2 import QtGui
9 from PySide2 import QtGui
8 import os
9 sys.path.append(os.getcwd())
10 sys.path.append(os.getcwd())
10 from SciQLopBindings import SqpApplication, MainWindow, init_resources, load_plugins, SqpApplication_ctor
11 from SciQLopBindings import SqpApplication, MainWindow, init_resources, load_plugins, SqpApplication_ctor
11 from qtconsole.rich_ipython_widget import RichJupyterWidget
12 from qtconsole.rich_ipython_widget import RichJupyterWidget
@@ -3,7 +3,7 qmake = find_program('qmake-qt5','qmake')
3
3
4 pymod = import('python')
4 pymod = import('python')
5 python3 = pymod.find_installation('python3', modules:['PySide2','shiboken2', 'shiboken2_generator', 'numpy'])
5 python3 = pymod.find_installation('python3', modules:['PySide2','shiboken2', 'shiboken2_generator', 'numpy'])
6 python3_dep = python3.dependency()
6 python3_dep = python3.dependency(embed:true)
7 numpy_inc = run_command(python3, '-c', 'import numpy;print(numpy.get_include())').stdout().strip('\n')
7 numpy_inc = run_command(python3, '-c', 'import numpy;print(numpy.get_include())').stdout().strip('\n')
8
8
9 qt5_modules = ['QtCore','QtGui','QtWidgets']
9 qt5_modules = ['QtCore','QtGui','QtWidgets']
@@ -47,4 +47,4 sciqlop_bindings = python3.extension_module('SciQLopBindings',sciqlop_bindings_s
47
47
48 configure_file(input:'main.py', output:'main.py', copy:true)
48 configure_file(input:'main.py', output:'main.py', copy:true)
49
49
50 executable('sciqlop', 'main.cpp', dependencies :python3.dependency())
50 executable('sciqlop', 'main.cpp', dependencies :python3_dep)
@@ -1,1 +1,1
1 Subproject commit 3bce297cb13e8337d71adceae6737c104c66ad52
1 Subproject commit 5d9a96289564d5cba1a9ba21c901645d39fbcbad
General Comments 0
You need to be logged in to leave comments. Login now