Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button zindex overlay #10

Open
h3 opened this issue May 3, 2015 · 0 comments
Open

Button zindex overlay #10

h3 opened this issue May 3, 2015 · 0 comments

Comments

@h3
Copy link

h3 commented May 3, 2015

Maybe I'm doing something wrong, but I can't get buttons to behave as expected. They always overlay the menu pane.

Button overlap

class MainApp(App):
    nav = NavigationDrawer()

    def build(self):
        for k in SCREENS.keys():
            try:
                Builder.load_file('screens/%s.kv' % k)
            except IOError:
                print "[ERROR  ] [APP         ] Could not load screens/%s.kv" % k
                pass

        side_panel = BoxLayout(orientation='vertical')
        side_panel.add_widget(Label(text='Panel label'))
        side_panel.add_widget(Button(text='A button'))
        side_panel.add_widget(Button(text='Another button'))
        self.nav.add_widget(side_panel, 100)

        self.nav.add_widget(SCREENS['login'].get('screen')(name=SCREENS['login'].get('name')))

        return self.nav
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant