This commit is contained in:
Irony 2018-05-06 01:42:03 +08:00
parent 69e5b66034
commit 21eed02866
11 changed files with 3241 additions and 0 deletions

View file

@ -1,5 +1,6 @@
eclipse.preferences.version=1
encoding//ActiveX\u7A97\u53E3/AxWidget.py=utf-8
encoding//C\u548CC++\u6269\u5C55/py\u8F6Cpyd/pydmod.py=utf-8
encoding//Json\u751F\u6210QTreeWidget/Json\u751F\u6210\u6811\u5F62\u7ED3\u6784.py=utf-8
encoding//PyQtChart\u7EC3\u4E60/ChartView/ChartView.py=utf-8
encoding//PyQtChart\u7EC3\u4E60/ChartView/ChatWidget.py=utf-8

View file

@ -0,0 +1,7 @@
cd %~dp0
python setup.py build
python test.py
pause

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,19 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created on 2018年5月6日
# author: Irony
# site: https://github.com/892768447
# email: 892768447@qq.com
# file:
# description:
__Author__ = """By: Irony
QQ: 892768447
Email: 892768447@qq.com"""
__Copyright__ = 'Copyright (c) 2018 Irony'
__Version__ = 1.0
def sum(x, y):
return x + y

View file

@ -0,0 +1,9 @@
from distutils.core import setup, Extension
from Cython.Distutils import build_ext
setup(
cmdclass={'build_ext': build_ext},
ext_modules=[Extension("pydmod", sources=["pydmod.py"])]
)

View file

@ -0,0 +1,7 @@
import sys
sys.path.insert(0,
'./build/lib.{0}-{1}.{2}'.format(sys.platform, sys.version_info.major, sys.version_info.minor))
import pydmod
print(pydmod)
print(pydmod.sum(1, 5))

View file

@ -37,6 +37,7 @@
- [1.27 QRC资源文件使用](QRC资源文件使用/)
- [1.28 C和C++扩展](C和C++扩展/)
- [1.28.1 pyx和c++](C和C++扩展/pyx和c++/)
- [1.28.2 py转pyd](C和C++扩展/py转pyd/)
### [2.QGraphicsView练习](QGraphicsView练习/)