Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
由于各种原因,我不能/不想使用 NIB 文件(或任何其他外部资源)。
如何使用 PyObjC(即纯 Python 代码)创建一个简单的虚拟应用程序(例如一些简单的菜单、一些空窗口)?
一个非常有用的示例代码介绍是 lethain.com 上的 PyObjC 和 Cocoa 简介,这里有一些示例代码(和相关文件)。
我现在也有一个自己的项目(一个音乐播放器),我在其中动态地构建了整个 Cocoa GUI。该部分的主要代码在这里。