[英]use a Tkinter frame in a Mac Cocoa app
I wrote a diff and merge program in Python using the Tkinter UI framework. 我使用Tkinter UI框架在Python中编写了一个diff和merge程序。 Running it on OS-X there are two problems:
在OS-X上运行它有两个问题:
So my Idea was to make a cocoa app window wich displays on start and on top and I can define what is in the menu - and integrate the Tk frame with my Python code somehow. 因此,我的想法是制作一个在开始和顶部均显示的可可应用窗口,然后我可以定义菜单中的内容-并以某种方式将Tk框架与我的Python代码集成在一起。
Is that possible? 那可能吗?
Try some variant of this command: 尝试以下命令的变体:
self.createcommand('tkAboutDialog', self.aboutProgram) self.createcommand('tkAboutDialog',self.aboutProgram)
and put your app "about" dialog code in the aboutProgram() function. 并将您的应用“关于”对话框代码放入aboutProgram()函数中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.