Kivy: Obere oder untere NavigationsleistePython

Python-Programme
Guest
 Kivy: Obere oder untere Navigationsleiste

Post by Guest »

Aus einigen Gründen wird nur der untere Balken angezeigt (unabhängig von IS_Mobile Status). Wie kann es behoben werden?

Code: Select all

BoxLayout:
orientation: 'vertical'
ActionBar:
hidden: app.is_mobile
size_hint_y: 0 if app.is_mobile else None
ActionView:
use_separator: True
ActionPrevious:
with_previous: True
on_release: app.next_screen('main')
ActionButton:
text: 'Shuffle 1'
ActionButton:
text: 'Check'
ActionButton:
text: 'Next'
Accordion:
AccordionItem:
title: '...'
Label:
text: '...'
AccordionItem:
title: '...'
Label:
text: '...'
ActionBar:
hidden: False if app.is_mobile else True
size_hint_y: None if app.is_mobile else 0
ActionView:
use_separator: True
ActionPrevious:
with_previous: True
on_release: app.next_screen('main')
ActionButton:
text: 'Shuffle'
ActionButton:
text: 'Check'
ActionButton:
text: 'Next'

< /code>
wobei app_mobile als: < /p>
 kalsuliert istfrom kivy.utils import platform

class MainApp(App):
is_mobile = BooleanProperty(False)

def build(self):
if platform in ['android', 'ios']:
self.is_mobile = True

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post