Re: Gnome GTK: buttons and menus in window title bar

Matthias Brennwald <[email protected]> Fri, 05 Mar 2021 08:28:54 +0100
Newsgroups gmane.comp.python.wxpython
Message-ID <[email protected]>

On Thu, Mar 4, 2021 at 09:34, Tim Roberts <[email protected]> wrote:
> [email protected] wrote:
>> 
>> Modern Gnome / GTK applications tend to put buttons and menus into 
>> the  title bar of the applications windows. Is there a way to deal 
>> with  this with wxPython?
> 
> When you say "deal with this", do you mean "duplicate this effect"?

Yes, that is sort of what I meant. However, it would be awkward to 
implement the GUI like this on all platforms, as this is only "a thing" 
on GNOME / GTK.

Of course I could do something like this:

if platform == GNOME3:
	...put widgets in window title bar...
else:
	...put widgets in the main area of the window...

However, that's not exactly elegant and misses the idea of wxpython. So 
what I really meant by "deal with this" was if wxpython has any 
"mechanism" or if there is a clever approach to place widgets in the 
window title bar on GNOME, but not on other platforms.

Matthias


-- 
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/6GJHPQ.LQ4GM5J3708A3%40gmail.com.