rafaelxy
rafaelxy

Reputation: 322

GTK+ Dock Panel like visual component

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.

Upvotes: 1

Views: 2791

Answers (3)

Micah Carrick
Micah Carrick

Reputation: 10187

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.

Upvotes: 1

rafaelxy
rafaelxy

Reputation: 322

I found it on pywx, the Advanced User Interface module: http://www.wxpython.org/docs/api/wx.aui-module.html

Upvotes: 0

walt_r
walt_r

Reputation: 21

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

Upvotes: 0

Related Questions