0
Я пытаюсь указать, что текст моей кнопки InputMaker будет указан при применении правила ModuleMaker в ModuleLayout. Однако при запуске программы текст не отображается (например, «Yo»). Источник, похоже, работает нормально, но текст - нет.Правила и свойства Kivy
<[email protected]>:
text: self.text
pos: self.pos
size: self.size
background_normal:'./images/modone.png'
<ModuleMaker>:
size: 150, 150
source: self.source
text: self.text
canvas:
Ellipse:
pos: self.pos
size: self.size
source: self.source
InputMaker:
id: btnone
text: self.text
pos: self.parent.pos
<ModuleLayout>:
moduleone: one
moduletwo: two
modulethree: three
ModuleMaker:
id: one
center_y: root.center_y
x: root.x +300
source: './images/modone.png'
text: "YO"
ModuleMaker:
id: two
center_y: root.center_y
x: root.x+400
source: './images/modtwo.png'
ModuleMaker:
id: three
center_y: root.center_y
x: root.x+500
source: './images/modthree.png'
Он выдает сообщение об ошибке «Нет» и не делает ничего. – Jamie