python - Setting/option isn't applying to the button class
问题描述
from ursina import *
app = Ursina()
class test_bot(Button):
def __int__(self):
super().__init__(
parent = scene,
model = 'cube',
texture = 'brick',
color = color.white,
highlight_color = color.red,
pressed_color = color.yellow
)
test_bo = test_bot()
app.run()
The button is apearing big and not white or when pressed yellow or apears as a brick texture. It just apears as a big button on screen and colored grey and black as default. See the screenshot:
解决方案
推荐阅读
- android - Android gradle - 使用不同目录为配置文件设置产品风格,查看所有目录,而不仅仅是 1
- git - git 检查提交是否是来自 master 的合并提交
- javascript - 调用javascript函数时出错
- python - 使用 Tensorflow Object Detection 的推理时间
- php - 仅在 WooCommerce 中的特定日期销售某些产品
- django - 如何使用 django 构建一个 pinterest 之类的照片选择器?
- javascript - 加载 Javascript 时不显示图像幻灯片
- docker - 使用 docker system prune 过滤网络
- python - C:\Python37\python.exe: 无法打开文件 'scrapy': [Errno 2] 没有这样的文件或目录
- c++ - 函数的后置条件是在所有情况下都有效还是仅在函数成功时有效?