class AlarmBox(Widget):
hour = ["12","1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11"]
tensMin = ["0", "1", "2", "3", "4", "5"]
onesMin = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
day = ["AM", "PM"]
txt_inpt = ObjectProperty(None)
def print1(self):
self.txt_inpt.text("HI")
XXXXXXX
如何在对象中调用 print1?
我试着在 XXXXXX
- self.print1()
- self.print1(自我)
- 打印1(自己)
- primt1()
- c = 报警箱()
- c.print1()
在java中你可以这样做:
this.print1() 或 print1() !