Myslím, že už jsem si odpovědi ostatních uživatelů na tuto otázku, ale nikdo z nich mi pomohl. Snažím se, aby program kalkulačka v pythonu s kivy GUI rozhraní,on problém je, že nemůžu odstranit, že prostor zvýrazněny červeně v přiložené fotografii dole. Už jsem to zkoušela s: size_hint: None,None
a size:root.size[0], "5dp"
měřítko BoxLayouts ale to nefungovalo
[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