GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sun Aug 28, 2016 8:38 am

All times are UTC

Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: [pygtk] size issue / datastructure for treeview like editor
PostPosted: Thu Jan 17, 2013 7:21 pm 

Joined: Wed Jan 16, 2013 11:42 pm
Posts: 3
Hello everyone,

I tried to implement a little treeview like editor.

I have problems with sizing the components. Sometimes components completely disappear or get squeezed or dont fill the space they should have at least. Buttons for example dont even have the size they need to show its own label.
Also the Textviews dont use the whole space to fill the frame vertically or horizontally (see picture attached first textview).
When an element grows which is ok then components of the some HBox grow also which is not intended.
Id rather have minimum values or what they need.
So in the end, Im trying to make this look uniform, like a treeview of table but with complex content.

Right now I have a structure like this:

= I/B | VBox( more content )
= textview |
= editfield | Button | textview
= Button | VBox ( content | content )
= ...more complex
where the separator | means that the components are side by side in an HBox

So what would you do? What types you suggest to use?
Can this be done with a treeview or a table? if yes how so?
I tried to adapt treeview (because there is already support for drag and drop, I think)
but the drawing gets hard to implement it seems.
And tables I have not yet understood fully.

Thanks a lot for help


/*language right now is python*/

treeview_editor.png [ 17.22 KiB | Viewed 1076 times ]
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group