मैं राज्य है कि मैं पहले से ही जवाब पढ़ने के लिए अन्य उपयोगकर्ताओं के लिए इस सवाल है, लेकिन उनमें से कोई भी मेरी मदद की. मैं कोशिश कर रहा हूँ करने के लिए कार्यक्रम में एक कैलकुलेटर अजगर के साथ 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