gpt4 book ai didi

python - sublime 文本编辑器使用什么 gui 库?

转载 作者:IT老高 更新时间:2023-10-28 21:45:17 27 4
gpt4 key购买 nike

我下载了 sublimetext 的编辑器我想知道那里使用了什么GUI库。

编辑器可执行文件目录中的文件的文件名是:

bz2.pyd
Microsoft.VC90.CRT.manifest
msvcp90.dll
msvcr90.dll
PackageSetup.py
PackageSetup.pyc
pyexpat.pyd
python26.dll
python26.zip
select.pyd
sublimeplugin.py
sublimeplugin.pyc
sublimetext.exe
unicodedata.pyd
unins000.dat
unins000.exe
_ctypes.pyd
_elementtree.pyd
_hashlib.pyd
_socket.pyd
_ssl.pyd

我可以从文件名中找到信息吗?

最佳答案

Sublime Text 2 大部分是用 C++ 编写的,并使用自定义 UI 工具包。以下是作者 Jon Skinner 的解释:http://news.ycombinator.com/item?id=2822114 .

I keep meaning to write a blog post with some details on this, but as with many things, I usually end up coding instead. Sublime Text 2 is almost entirely C++ (with a smattering of Objective C for Cocoa and Python for plugins). Coding is generally fairly straight forward: code on one platform (mostly Linux at the moment, but I switch around frequently), and then make sure it still compiles elsewhere. Sublime Text 2 itself uses a custom UI toolkit. There are a lot of apps where this may not make sense, but it's not such an unreasonable choice for Sublime Text, where I always knew that a lot of the UI controls were going to have to be custom no matter the toolkit (e.g., the text control and tab controls). The UI toolkit sits on top of a cross platform abstraction layer, which is more a union of platform functionality rather than lowest common denominator.

关于python - sublime 文本编辑器使用什么 gui 库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7102378/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com