不明白我为什么得到
AttributeError: 'ColorWheel' object has no attribute 'sv_s'
当我跑步时
from kivy.app import App
from kivy.lang import Builder
from kivy.uix.colorpicker import ColorWheel
from kivy.uix.boxlayout import BoxLayout
class MainApp(App):
def build(self):
box = BoxLayout()
box.add_widget(ColorWheel())
self.root = box
MainApp().run()
使用kv时没有任何错误,例如:
from kivy.app import App
from kivy.lang import Builder
KV = '''
BoxLayout
ColorWheel
'''
class MainApp(App):
def build(self):
self.root = Builder.load_string(KV)
MainApp().run()
我想念什么?