Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I reorder widgets in the Glade widget tree?

For example, assume I have a Glade application that contains this partial tree:

box1 (GtkBox)
|--button1 (GtkButton)
|--button2 (GtkButton)
|--button3 (GtkButton)

How can I swap the position of e.g. button1 with e.g. button2, so that button2 will be above button1 in the UI?

share|improve this question
You're looking for re-parenting. Post a more complete code sample and glade file for an answer instead of a comment. An example answer that provides the context the question should have:… – RobotHumans Apr 7 '13 at 13:35 i don't have any logic hooked up yet for buttons and stuff. – strugee Apr 7 '13 at 13:50
it has one additional .py file that shouldn't be getting imported from anything. other than that it's a generic quickly application. – strugee Apr 7 '13 at 13:51
up vote 1 down vote accepted

Upon further investigation, it appears that you cannot modify the order from the widget tree panel. However, you can still modify order in the visual editor.

In the toolbar, there are a couple of buttons for selecting cursor modes. Click the button right after the cursor. It should have four arrows. Then click on the widget that you want to move, and drag it where you want to move it to.

share|improve this answer
Or you can change the position property in the packing tab of the buttons. – Timo Apr 7 '13 at 19:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.