简体   繁体   中英

How to fix 'Invalid Property Name ' in kivy

in line 7 it throws the error:

:kivy 1.0.9

: orientation: 'vertical' spacing: 10

BoxLayout:
    size_hint_y= None
    height: 50
    Label:
        text: 'Account Control'
        bold: True
        size_hint_x=.9
    Button:
         text: 'x'
         size_hint_x= 1

6: BoxLayout:

7: size_hint_y= None 8: height: 50 9: Label: ... Invalid property name

This usually indicates a syntax error messing up the property name parsing. In this case, your error is on the line you picked out: size_hint_x= 1 should be size_hint_x: 1 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM