DELPHI盒子
!实时搜索: 盒子论坛 | 注册用户 | 修改信息 | 退出
检举帖 | 全文检索 | 关闭广告 | 捐赠
技术论坛
 用户名
 密  码
自动登陆(30天有效)
忘了密码
≡技术区≡
DELPHI技术
lazarus/fpc/Free Pascal
移动应用开发
Web应用开发
数据库专区
报表专区
网络通讯
开源项目
论坛精华贴
≡发布区≡
发布代码
发布控件
文档资料
经典工具
≡事务区≡
网站意见
盒子之家
招聘应聘
信息交换
论坛信息
最新加入: webb123
今日帖子: 33
在线用户: 17
导航: 论坛 -> DELPHI技术 斑竹:liumazi,sephil  
作者:
男 pcplayer (pcplayer) ★☆☆☆☆ -
普通会员
2022/8/5 2:37:47
标题:
安利一个:PyScripter 这个英巴官方推的开源 Python IDE 浏览:2762
加入我的收藏
楼主: 下载安装测试了一下 PyScripter,这个 IDE 真好用。界面也很舒服。使用习惯和使用 Delphi IDE 类似。比如运行也是按 F9 而不是微软的 IDE 惯用的 F5.

代码提示也非常舒服。鼠标指向一个函数,提示就出来了。

重点:这个 IDE 本身是用 Delphi 开发的,而且开源,在 github 上有。有兴趣的话,下载源代码来学习,应该是学习 Delphi 编程的非常好的素材。

如果学习 python 编程,使用这个 IDE,我的感觉是比较容易入门。

然后现在 Delphi 里面也能够很轻松嵌入 python 的代码,可以充分利用一些 python 的现成的开源库的能力,因此可以让 Delphi 开发的程序更容易实现一些功能而不用自己写 Delphi 的代码。因此 python 也是值得 Delphi 程序员去学习的。
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2022/8/5 3:05:18
1楼: here is the official repository of PyScriper on github

PyScripter is a free and open-source Python Integrated Development Environment (IDE) created with the ambition to become competitive in functionality with commercial Windows-based IDEs available for other languages.

https://github.com/pyscripter
https://github.com/pyscripter/pyscripter
https://github.com/pyscripter/python4delphi
https://github.com/pyscripter/XLRisk
https://github.com/pyscripter/Ssh-Pascal
https://github.com/pyscripter/MultiInstaller
https://github.com/pyscripter/Pcre-Jit-Delphi
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 ddrfan (若苗瞬) ▲▲▲▲▲ -
普通会员
2022/8/5 9:42:36
2楼: 试了一下不错啊:)
----------------------------------------------
Bye bye DDRFAN...
作者:
男 delphiilove (乌羽玉) ★☆☆☆☆ -
普通会员
2022/8/5 11:13:12
3楼: 好东西
----------------------------------------------
-
作者:
男 yxsoft (yxsoft) ★☆☆☆☆ -
盒子活跃会员
2022/8/5 11:15:34
3楼: 记得当时折腾很久才发现如何把一个Python的虚拟环境设置到这个IDE里面,到现在也没明白什么叫 Registered Versions 和 Unregistered Versions
----------------------------------------------
Great!
作者:
男 ddrfan (若苗瞬) ▲▲▲▲▲ -
普通会员
2022/8/5 11:50:02
4楼: Python环境挺不好搞,
用Python先用Anaconda养猪,
我这啥都没有就1个环境而已,看了下目录都30GB了。。。
----------------------------------------------
Bye bye DDRFAN...
作者:
男 ddrfan (若苗瞬) ▲▲▲▲▲ -
普通会员
2022/8/5 11:55:54
5楼: 呃,我想说先养Anaconda,怎么写成养猪。。。
按此在新窗口浏览图片
----------------------------------------------
Bye bye DDRFAN...
作者:
男 sxqwhxq (步惊云) ★☆☆☆☆ -
普通会员
2022/8/5 12:02:43
6楼: 关键是,它能干什么?
目前delphi可以做三层、中间件、低层、android\ios\Mac OS\web\linux x86\CS、BS,而且生产效率非常高,除了linux arrch64\mips,其它都能胜任,用这些delphi4Python,PyScripter,它的价值在哪呢,玩吗?
----------------------------------------------
-
作者:
男 pp0123 (pp0123) ★☆☆☆☆ -
普通会员
2022/8/5 12:53:05
7楼: 为何搞上 Python ?
是因为它拥有最多最强的AI程式库
各家语言都想引入这些程式库, 而不是对 Python 有什么好感.
----------------------------------------------
-
作者:
男 seefall (Delfy) ★☆☆☆☆ -
普通会员
2022/8/5 14:14:54
8楼:  to 5楼:

有MiniConda

https://docs.conda.io/en/latest/miniconda.html
----------------------------------------------
-
作者:
男 www12345 (风云) ★☆☆☆☆ -
盒子活跃会员
2022/8/5 16:21:57
9楼: 7楼说到点上了
----------------------------------------------
一卡通专家的中专家www.cnduh.com
作者:
男 ddrfan (若苗瞬) ▲▲▲▲▲ -
普通会员
2022/8/5 16:36:46
10楼: 感谢8楼:)

PS:@6楼

Python是脚本语言,非软件开发专业的各行各业人士都能轻易的用起来(所以Python才会有那么多智能,数学,算法,各行各业的库……)

也就是说,我们这类代码猴子只是在【用Python】,而不是【用Python开发】 :)
----------------------------------------------
Bye bye DDRFAN...
作者:
男 pcplayer (pcplayer) ★☆☆☆☆ -
普通会员
2022/8/5 20:54:07
11楼:  我以为用Anaconda养猪是个什么我不懂的行业术语呢。

6楼,你说的中间层,底层,中间件什么的,仅仅是数据库开发的一些东西。简单说就是做 MIS 系统。这种东西,仅仅是使用程序来完成的工作的一小部分。

再进一步,即便你用了 H5,搞了什么流行的前端,还是个 MIS,也仅仅是一小部分。

用程序,可以做很多事情的。比如英巴的一篇文章里面有个 Delphi 的资深用户,他用 Delphi 开发的产品卖了几十年了,现在还在卖,是一个船舶设计工具,3D的,类似 AutoCAD 这样的东西。

比如,Skype 这个聊天工具,也是 Delphi 做的。

眼界放开一点,当你要用 Delphi 做一个东西,Delphi 自己的代码库没有对应的东西的时候,要么自己从头写,要么找个现成的。其实我们也一直在用现成的。比如 Delphi 的 VCL 其实用的是 Windows 的库,而 Windows 的库是 C++ 写的。还不一样用。

如果有些东西是 python 写的,我们拿过来就能够给程序增加功能,为啥不用?

这是其一。

其二,如果你的程序里面能够把 script 玩好,不说 python,你把 PASCAL 的 Script 玩好,你的程序就可以在不做任何修改也不做重新编译的情况下,远程下载一堆 script 到客户端,客户端就增加了新的功能,或者老的功能就改变了业务逻辑或者运行模式,这不是很好么。

我一个用 C++ 的朋友,为了让程序更容易升级新功能,十年前就开始在他的 C++ 程序里面嵌入 python 的东西了。
----------------------------------------------
-
作者:
男 newbuyer (newbuyer) ★☆☆☆☆ -
普通会员
2022/8/6 2:38:17
12楼: 嵌入脚本解释器是二次开发的好途径, 选择什么脚本看应用的受众, 我们在自己的产品中就嵌入了Pascal/JavaScript/Python三种脚本, 还有许多人选择Lua, VCL时代脚本解释器直接可以有设计和绑定Form的组件, 现在FMX不知道有没有类似的东西?
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2022/8/6 5:15:10
13楼: Python on Android with Delphi FMX – The Cross Platform GUI Framework

What is Delphi for Python?
Set of free Python modules bringing Delphi’s GUI libraries to Python developers
Mature, feature rich, native & cross-platform
Does not require Delphi to use
Based on the open source Python4Delphi (same technology that powers the PyScripter IDE)
Available today on GitHub & PyPi
Currently in beta, but ready for use
DelphiVCL for Python supports Windows (32-bit & 64-bit)
DelphiFMX for Python adds Linux, Android, & Mac OS
Part of a bidirectional bridge between Delphi and Python
https://blogs.embarcadero.com/pt/python-on-android-with-delphi-fmx/

Jim McKeeth MVP - webinar
https://youtu.be/PWfE9JLgbtU

Installation
pip install delphifmx
Supports
Win32 x86, Win64 x86, Linux64 x86, Android64, macOS64 and macM1 architectures
Python cp3.6, cp3.7, cp3.8, cp3.9 and cp3.10
Conda support
Win x86 and x64 from Python cp3.6 to cp3.10
Linux x86_64 from Python cp3.6 to cp3.10
macOS x86_64 from Python cp3.6 to cp3.10
Venv support
Win x86 and x64 from Python cp3.6 to cp3.10
Linux x86_64 from Python cp3.6 to cp3.10
macOS x86_64 from Python cp3.6 to cp3.10


https://github.com/Embarcadero/DelphiFMX4Python
https://github.com/Embarcadero/DelphiVCL4Python
https://github.com/Embarcadero/python4delphi
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 wuxi15 (似水·流年) ▲▲▲▲▲ -
普通会员
2022/8/6 6:03:04
14楼: 他不是EMB开源的,不要搞错了,
----------------------------------------------
-
作者:
男 qq81709989 (战石电子) ▲▲△△△ -
普通会员
2022/8/6 8:47:10
15楼: to 楼上:这个Python IDE确实不是EMB开发的,但是现在由EMB资助,估计是跟原开发者有资助开发协议的
----------------------------------------------
《Z-Gantt智慧时间管理进度计划甘特图软件》:WWW.Z-SHi.NET
作者:
男 seefall (Delfy) ★☆☆☆☆ -
普通会员
2022/8/6 9:13:20
16楼: to 13楼:

不得不说,

https://github.com/Embarcadero/DelphiFMX4Python
https://github.com/Embarcadero/DelphiVCL4Python

太强大了,利用delphi 的IDE 写Python 的界面,
比wxPython,qt, PyGTK 好用太多了哈!

学习了,谢谢各位!
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2022/8/6 9:23:43
17楼: PyScripter GitHub License:

While this redistributable library is covered by the Embarcadero Freeware License, all the source code for it is covered by the MIT License.

https://github.com/Embarcadero/python4delphi/blob/master/LICENSE

"
MIT License

Copyright (c) 2018 Dietmar Budelsky, Morgan Martinet, Kiriakos Vlahos

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2022/8/6 9:24:53
18楼: 麻省理工學院許可證

版權所有 (c) 2018 Dietmar Budelsky, Morgan Martinet, Kiriakos Vlahos

特此免費授予任何獲得本軟件和相關文檔文件(“軟件”)副本的人,以不受限制地處理本軟件,包括但不限於使用、複製、修改、合併的權利、發布、分發、再許可和/或出售本軟件的副本,並允許向其提供本軟件的人這樣做,但須符合以下條件:

上述版權聲明和本許可聲明應包含在本軟件的所有副本或大部分內容中。

本軟件按“原樣”提供,不提供任何形式的明示或暗示保證,包括但不限於適銷性、特定用途適用性和非侵權保證。在任何情況下均不得
作者或版權持有人應對任何索賠、損害或其他責任承擔責任,無論是在合同訴訟、侵權行為或其他方面,由軟件或軟件中的使用或其他交易引起、與之相關或與之相關。
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2022/8/6 9:29:49
19楼: IT'S REALLY FREE FOR USE COMMERCIAL OR NOT

just:
1) download the source code on Github (any one)
2) do changes if necessary
3) PUT THE TEXT for "MIT LICENSE" on file readme.txt / license.txt etc... if you can redistribute it for anyone, else, DO NOTHING!
4) compile and use!
5) if any problem... HELLO WORLDdddddddddd , it's fuck man! >:()
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 seefall (Delfy) ★☆☆☆☆ -
普通会员
2022/8/6 9:37:04
17楼: 问题来了,那个pydfm 文件是怎么生成呢? 没头没脑
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2022/8/6 9:42:15
20楼: unfortunatelly I dont nothing about Python >:))) sorry my ignorance...

but the DFM is create by code (TEXT) on IDE and save in disk in text format, then, I think that in Python <-> Delphi just a parse is done to open/read/write like using "  WriteComponentResFile()" / "  ReadComponentResFile()"
of course this is done background by IDE!

search on Delphi HELP SYSTEM by: "ReadComponentResFile (Delphi)"


EXPORTER DELPHI FORMS TO PYTHON
https://github.com/Embarcadero/Delphi4PythonExporter


https://github.com/Embarcadero/PythonUniverse
https://github.com/Embarcadero/python4delphi
https://github.com/Embarcadero/PythonFMXBuilder
https://github.com/Embarcadero/PythonEnviroments
https://github.com/Embarcadero/PyScripter
https://github.com/Embarcadero/Lightweight-Python-Wrappers
https://github.com/Embarcadero/Delphi4PythonExporter
https://github.com/Embarcadero/DelphiFMX4Python
https://github.com/Embarcadero/DelphiVCL4Python
https://github.com/Embarcadero/TensorFlow-Lite-Delphi
https://github.com/Embarcadero/Keras4Delphi
https://github.com/Embarcadero/ComparisonResearch
https://github.com/Embarcadero/Dev-Cpp
https://github.com/Embarcadero/OTAPI-Docs
https://github.com/Embarcadero/FieldLogger-FMXTraining
https://github.com/Embarcadero/dap4delphi
https://github.com/Embarcadero/P4D-Data-Sciences


按此在新窗口浏览图片

按此在新窗口浏览图片

按此在新窗口浏览图片
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 seefall (Delfy) ★☆☆☆☆ -
普通会员
2022/8/6 10:22:53
21楼: No clue ...
此帖子包含附件:
JPEG 图像
大小:1,007.4K
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2022/8/6 20:36:55
22楼: Up!
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 sail2000 (小帆工作室) ★☆☆☆☆ -
盒子活跃会员
2022/8/12 22:00:08
23楼: 这工具是不是不支持最新的 python 3.11rc 版本?我指定了 python311 的主目录,但还是识别不了。
----------------------------------------------
delphi 是兴趣,和工作无关,即使它倒闭。又不靠它 delphi 吃饭,怕甚?
作者:
男 pcplayer (pcplayer) ★☆☆☆☆ -
普通会员
2022/8/13 22:52:53
24楼: 23 楼,我估计和版本号没什么关系,和环境设置有关系。

python 的安装以及环境设置以以及多个版本在环境里面的关系,很麻烦。所以才有类似 CONDA 这样的东西。
----------------------------------------------
-
作者:
男 zhuzh_yuy (华) ★☆☆☆☆ -
普通会员
2022/8/29 15:38:41
25楼: 请问python常用和热门的库在哪可以下载
----------------------------------------------
-
作者:
男 winsy (winsy) ★☆☆☆☆ -
盒子活跃会员
2022/8/30 9:13:49
26楼: @zhuzh_yuy
python常用,热门的包下载地址
https://www.lfd.uci.edu/~gohlke/pythonlibs/
----------------------------------------------
-
作者:
男 wangguol (xiaozhu benben) ★☆☆☆☆ -
盒子活跃会员
2022/8/30 9:14:17
26楼: 回楼上的 python 包安装器pip 直接用 pip install xxxx包这样安装。      比如流行的numpy 库:  pip install numpy
----------------------------------------------
-
作者:
男 zhuzh_yuy (华) ★☆☆☆☆ -
普通会员
2022/9/1 9:05:25
27楼: 感谢26楼
----------------------------------------------
-
信息
登陆以后才能回复
Copyright © 2CCC.Com 盒子论坛 v3.0.1 版权所有 页面执行101.5625毫秒 RSS