ฉันรัฐที่ผมต้องไปแล้วอ่านคำตอบของผู้ใช้อื่นนี้คำถามแต่ไม่ใช่เรื่องของพวกเขาช่วยฉัน ฉันกำลังพยายามโปรแกรมเครื่องคิดเลขในภาษาไพธอนกับ kivy ส่วนติดต่อผู้ใช้แบบส่วนติดต่อเขาปัญหาคือฉันไม่สามารถลบน พื้นที่เน้น ในสีแดงในห้องติดกับรูปภาพข้างล่างนี่ ฉันต้องไปแล้วพยายามด้วย: size_hint: None,None
แล้ว size:root.size[0], "5dp"
เพื่อปรับขนาดค BoxLayouts แต่มันไม่ทำงาน
[1]: https://i.stack.imgur.com/y1ZwF.png
BoxLayoutExample:
<BoxLayoutExample>:
orientation: "vertical"
Label:
text: "0"
font_size: "30dp"
BoxLayout:
orientation: "horizontal"
Button:
text: "7"
size_hint: .1, .3
Button:
text: "4"
size_hint: .1, .3
Button:
text: "1"
size_hint: .1, .3
BoxLayout:
orientation: "horizontal"
Button:
text: ","
size_hint: .1, .3
Button:
text: "0"
size_hint: .1, .3
Button:
text: "="
size_hint: .1, .3