开发者

Resizing gtk widgets by user

开发者 https://www.devze.com 2023-02-01 23:17 出处:网络
I am working on a project in python using gtk and in it the is a gtk notebook on top of a vte console. I am having trouble getting it to be resizable by the user (i.e. I want the user to be able to dr

I am working on a project in python using gtk and in it the is a gtk notebook on top of a vte console. I am having trouble getting it to be resizable by the user (i.e. I want the user to be able to drag the border of the 2 up and down and resize both accordingly). Could anyone p开发者_开发百科oint me in the right direction on how to do this?


Try this:

vpan = gtk.VPaned()
vpan.show()
vpan.pack1(box1, shrink=False)
vpan.pack2(box2, shrink=False)
0

精彩评论

暂无评论...
验证码 换一张
取 消