On Linux, window contents are rendered behind a menubar
See original GitHub issueBut 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:
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:
- Created 6 years ago
- Reactions:2
- Comments:22 (10 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@joe733 If all goes well, we’ll release 0.3.0.dev20 this weekend.
Thanks @friscodelrosario it works on Hera too.
Just curious when will
0.3.0.dev20
release be pushed?