首页 > 解决方案 > 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:

this is how it looks

标签: python

解决方案


推荐阅读