+关注
已关注

分类  

暂无分类

标签  

暂无标签

日期归档  

暂无数据

How to change the appearance of Kivy Settings pane

发布于2020-10-30 21:45     阅读(769)     评论(0)     点赞(25)     收藏(0)


0

1

2

3

4

5

6

7

8

I have been using Kivy for a few weeks now and I really like the built in settings pane. I have used this to allow users to specify some file paths ans toggle settings. This all works fine, but I have been unable to change to appearance of this screen. There are two main things I want to modify.

First off I want to change the color of the text in the settings 'Close' button. I have modified the window colors by changing the default theme, but I don't know how to access the close button from my App Class. Looking the source code I can see the button's name is close_button which is a child of menu, but I can't seem to access it.

In addition to change the text colors in settings, I would like to modify the layout so that long paths will wrap down to two lines. I build the content of the settings page using a json file (except shown below) and I can't seem to figure out how to specify height and text_size for these items.

 {'type': 'title',
 'title': 'Input Files:'},
{'type': 'path',
 'title': '1st file path',
 'desc': 'use the file browser to select your file',
 'section': 'paths',
 'key': 'path1'},
  ....

Any advice that will help me modify the appearance of my settings page would be greatly appreciated.


解决方案


暂无回答

0

1

2

3

4

5



所属网站分类: 技术文章 > 问答

作者:黑洞官方问答小能手

链接: https://www.pythonheidong.com/blog/article/609630/791e91ceb11eeba72da1/

来源: python黑洞网

任何形式的转载都请注明出处,如有侵权 一经发现 必将追究其法律责任

25 0
收藏该文
已收藏

评论内容:(最多支持255个字符)