GTK+ Dock Panel 类似可视化组件
我正在使用 python 开发一个小型桌面应用程序。我希望它是多平台的,并且有一个与 Eclipse 类似(但更简单)的 GUI。我知道像 eclipse 布局一样工作的组件在 Microsoft .NET 中称为 DockPanel。
有人可以帮我吗?由于 eclipse 是用 GTK+ 开发的,我想我只需要发现 GUI 组件的名称,或者告诉我它在 GUI 框架(如 Qt)上的另一个名称。
I'm developing a small desktop application using python. I want it to be multi platform, and have a GUI similar (but simpler) to Eclipse. I know that the component that works just like eclipse layout are called DockPanel in Microsoft .NET.
Can someone help me out? Since eclipse is developed in GTK+ I guess I need only to discover the name of the GUI component, or maybe tell me another its name on GUI framework like Qt.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在 GTK+ 中有一个名为 gdl 的对接库,由 Anjuta IDE 使用例如。然而,这对于跨平台使用来说并不是一个非常合作的解决方案。我认为 MonoDevelop 基于此构建了对接库,但我可能是错的。
我个人在 PyGTK (GTK 2.x) IDE 中使用过这个应用程序。它工作得很好——我可以将多个窗口停靠在主布局上的任何位置,并将布局加载/保存到 XML 文件。我还没有尝试过 PyGObject (GTK+ 3.x)。
正如所指出的,Eclipse 不是用 Python/GTK 编写的,因此您需要研究 Eclipse 使用哪些 Java/SWT 库进行对接,或者使用 wxWidgets 等工具包研究对接选项,以获得更好的跨平台解决方案。
In GTK+ there is a docking library called gdl which is used by Anjuta IDE for example. However, this would not be a very cooperative solution for cross-platform use. I think MonoDevelop built there docking library based on this, but I could be wrong about that.
I've personally used this application in a PyGTK (GTK 2.x) IDE. It worked great--I could dock multiple windows anywhere on the main layout and load/save layouts to an XML file. I have not tried it with PyGObject (GTK+ 3.x) yet.
As was pointed out, Eclipse is not written in Python/GTK so you'll want to investigate what Java/SWT library eclipse uses for docking or look into docking options with a toolkit like wxWidgets for better cross-platform solution.
不确定 DockPanel 是什么,但名称中带有“Dock”的类是“QDockWidget”。它通常位于“QMainWindow”内,并允许堆叠和重新组织。 http://doc.qt.nokia.com/latest/qmainwindow.html 上有一张图片
Not sure what a DockPanel is, but a class with 'Dock' in its name is 'QDockWidget'. This typically lives within a 'QMainWindow' and allows stacking and re-organization. There's an picture on http://doc.qt.nokia.com/latest/qmainwindow.html
我在高级用户界面模块 pywx 上找到了它:
http://www.wxpython.org/docs/api/wx.aui -module.html
I found it on pywx, the Advanced User Interface module:
http://www.wxpython.org/docs/api/wx.aui-module.html