mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Rename to make more appropriate.
This commit is contained in:
parent
c7ad9be8ab
commit
0ba65a1050
3 changed files with 5 additions and 7 deletions
|
@ -37,16 +37,14 @@ get_filename_component(QtCore_libdir ${QtCore_location} DIRECTORY)
|
|||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
|
||||
project(Shiboken2-Qt-Example)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(sample_library "libexamplebinding")
|
||||
set(bindings_library "Shiboken2QtExample")
|
||||
set(bindings_library "PySolFC_KCard")
|
||||
set(sample_library "lib_${bindings_library}_binding")
|
||||
set(wrapped_header ${CMAKE_SOURCE_DIR}/bindings.h)
|
||||
set(typesystem_file ${CMAKE_SOURCE_DIR}/bindings.xml)
|
||||
set(generated_sources
|
||||
${CMAKE_CURRENT_BINARY_DIR}/${bindings_library}/mykcarddeck_wrapper.cpp
|
||||
${CMAKE_CURRENT_BINARY_DIR}/${bindings_library}/shiboken2qtexample_module_wrapper.cpp)
|
||||
${CMAKE_CURRENT_BINARY_DIR}/${bindings_library}/pysolfc_kcard_module_wrapper.cpp)
|
||||
|
||||
find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0"?>
|
||||
<typesystem package="Shiboken2QtExample">
|
||||
<typesystem package="PySolFC_KCard">
|
||||
<load-typesystem name="typesystem_core.xml" generate="no"/>
|
||||
<load-typesystem name="typesystem_gui.xml" generate="no"/>
|
||||
<object-type name="MyKCardDeck">
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
try:
|
||||
from PySide2.QtGui import QPixmap # noqa: F401
|
||||
from Shiboken2QtExample import MyKCardDeck
|
||||
from PySolFC_KCard import MyKCardDeck
|
||||
except BaseException:
|
||||
def MyKCardDeck():
|
||||
return None
|
||||
|
|
Loading…
Add table
Reference in a new issue