按用户调整gtk小部件的大小 [英] Resizing gtk widgets by user

查看:65
本文介绍了按用户调整gtk小部件的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用gtk在python中的项目上工作,其中是在vte控制台顶部的gtk笔记本.我无法让用户调整其大小(即我希望用户能够上下拖动2的边框并相应地调整两者的大小).谁能为我指出正确的方法?

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 point me in the right direction on how to do this?

推荐答案

尝试一下:

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

这篇关于按用户调整gtk小部件的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆