Содержание
- 2. CONTENTS
- 3. PYTHON: WHY SHOULD I (DELPHI DEVELOPER) CARE?
- 4. PYTHON-DELPHI: POTENTIAL SYNERGIES
- 5. POPULARITY OF PYTHON
- 6. PYTHON VS. JAVA Interest over time (Google Trends) Java Python
- 7. DELPHI VS PYTHON
- 8. PYTHON FOR DELPHI (I)
- 9. PYTHON FOR DELPHI (II) Delphi version support 2009 or later Platform support Windows 32 & 64
- 10. GETTING STARTED – INSTALLING PYTHON Select a Python distribution www.python.org (official distribution) Anaconda (recommended for heavy
- 11. GETTING STARTED – INSTALLING PYTHON FOR DELPHI Clone or download and unzip the Github repository into
- 12. P4D COMPONENTS
- 13. SIMPLE DEMO (I) SynEdit Memo
- 14. SIMPLE DEMO (II) All components are using default properties PythonGUIInputOutput linked to PythonEngine and Memo Source
- 15. USING TPYTHONMODULE (I) Python def is_prime(n): """ totally naive implementation """ if n return False q
- 16. Python def count_primes(max_n): res = 0 for i in range(2, max_n + 1): if is_prime(i): res
- 17. USING TPYTHONMODULE (III) Add a TPythonModule to the form and link it to the PythonEngine ModuleName:
- 18. Python from delphi_module import delphi_is_prime def count_primes(max_n): res = 0 for i in range(2, max_n +
- 19. USING TPYTHONMODULE (V) Implement delphi_count_primes using TParallel.For function CountPrimes(MaxN: integer): integer; begin var Count := 0;
- 20. USING PYDELPHIWRAPPER PyDelphiWrapper allows you to expose Delphi objects, records and types using RTTI and cusomised
- 21. WRAPDELPHI DEMO31 Shows you how you can create Delphi GUIs with Python Create forms Subclass Forms
- 22. CONCLUSIONS With Python for Delphi you can get the best of both worlds P4D makes it
- 24. Скачать презентацию