GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Mon Oct 20, 2014 9:43 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 
Offline

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:

content
= 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

michael

/*language right now is python*/


Attachments:
treeview_editor.png
treeview_editor.png [ 17.22 KiB | Viewed 722 times ]
Top
 Profile  
 
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: Google Adsense [Bot] and 5 guests


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