question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

On Linux, window contents are rendered behind a menubar

See original GitHub issue

But only if the menubar wasn’t defined in the application code. Here’s a slightly modified example code I’m running:

import toga

def build(app):
    box = toga.Box()
    button = toga.Button('Hello world', on_press=lambda _: print("hello"))
    box.add(button)
    return box

if __name__ == '__main__':
    app = toga.App('First App', 'org.pybee.sample', startup=build)
    app.main_loop()

Here’s how it looks like to me:

image

Note that the button is behind the menubar (although no menubar was requested in the code). When I click on the menubar (including the Application or Help menu items), the button is being pressed instead.

I’ve tried this with a few GTK themes, including Arc-OSX-dark, Mint-X, Redmond and Adwaita, and in every case it behaves this way.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:22 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
freakboy3742commented, Jun 11, 2020

@joe733 If all goes well, we’ll release 0.3.0.dev20 this weekend.

0reactions
joe733commented, Jun 11, 2020

Increasing the margin worked! Here’s what I get by clicking that second close button: screenshot from 2017-06-02 01 45 14

Thanks @friscodelrosario it works on Hera too.

Screenshot from 2020-06-11 20-57-37

Just curious when will 0.3.0.dev20 release be pushed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

MenuBar issue in 0.3.0 ( not visible on start ) #414 - GitHub
Following the issue, I explained in #392 regarding the MenuBar basically at startup menu bar is not visible at all and after a...
Read more >
How can I get maximized windows not to hide behind the ...
Acceptable workaround for me was to enable Show hide buttons in the Panel properties (just below autohide option, package mate-desktop ...
Read more >
1. Configuring a Desktop Environment - Linux Annoyances for ...
Chapter 1. Configuring a Desktop Environment I start the list of annoyances at the desktop, as that's where most new users learn to...
Read more >
Window manager - ArchWiki
The equivalent of window managers on Wayland are called compositors because they also act as compositing window managers. Contents. 1 Overview.
Read more >
Python and PyQt: Creating Menus, Toolbars, and Status Bars
In this section, you'll learn the basics of how to add menu bars, menus, and toolbars to your GUI applications with Python and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found