我的滚动条问题是什么? [英] whats the problem with my scrollbar ?

查看:86
本文介绍了我的滚动条问题是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的滚动条有效,但尺寸很小,如何添加水平滚动条?感谢帮助。

my scroll bar works but the size is to small and how would i go by adding a horizontal scroll bar ? help would be appreciated thanks.

展开 | 选择 | Wrap | 行号

推荐答案

需要配置Scrollbar.grid sticky =''ns'' rowspan = 3 。水平滚动条将以相同的方式添加,但配置为 orient = Tkinter.HORIZONTAL 和w.grid sticky =" ew。配置文本小部件 xscrollcommand = hscrollbar.set hscrollbar [" command"] = self.textWidget.xview


我在 这个帖子
Scrollbar.grid needs to be configured sticky=''ns'' and rowspan=3. A horizontal scrollbar will be added the same way but configured orient=Tkinter.HORIZONTAL and w.grid sticky="ew". Configure the Text widget xscrollcommand=hscrollbar.set and hscrollbar["command"] = self.textWidget.xview.

I posted an example Text widget with horizontal and vertical scrollbars in this thread.


所以我需要重写我的整个代码,以便它可以包含类和我自己,我没有在python之前使用过课程
so do i need to re write my whole code so it can include classes and self, i haven''t used classes before in python


和我使用python 3,你想看到我的完整源代码
and im using python 3, do you want to see my full sourcecode


这篇关于我的滚动条问题是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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