答案 0 :(得分:0)
from kivy.lang import Builder
from kivymd.app import MDApp
KV = '''
MDScreen:
MDIconButton:
icon: "data/logo/kivy-icon-512.png"
'''
class Test(MDApp):
def build(self):
return Builder.load_string(KV)
Test().run()
答案 1 :(得分:0)
您可以使用画布并将其设置为Elipse,如下所示:
from kivy.app import App
from kivy.lang import Builder
kv = '''
BoxLayout:
orientation: 'vertical'
FloatLayout:
canvas:
Color:
rgb: 1, 1, 1
Ellipse:
pos: 280, 200
size: 200 , 200
source: 'image.jpg'
angle_start: 0
angle_end: 360
'''
class App(App):
def build(self):
return Builder.load_string(kv)
App().run()