Ver 3.1.3.10 Screen won't re-size

More
4 years 10 months ago #230026 by HansU
Norbert, I think you know that the bigger padding causes this problem.
On a stand-alone GUI I could get this padding reduced with CSS, but it didn't work inside gmoccapy.
Here only as a hint, (but I am sure you already know ;-) ):
Also setting it on every button is not very practicable.
Code:
from gi.repository import Gtk from gi.repository import Gdk win = Gtk.Window() btn = Gtk.Button("Padding 0") screen = Gdk.Screen.get_default() provider = Gtk.CssProvider() style_context = Gtk.StyleContext() style_context.add_provider_for_screen(screen, provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION) provider.load_from_data("#small {padding: 0;}".encode()) btn.set_name('small') # assign CSS with padding 0 win.add(btn) win.show_all() win.connect('destroy', Gtk.main_quit) Gtk.main()
[from stackoverflow.com/questions/61375905/gtk...ng-of-internal-label ]

Please Log in to join the conversation.

More
4 years 8 months ago #233652 by HansU
I have a fix for that. Have a look at github.com/LinuxCNC/linuxcnc/pull/1557

Please Log in to join the conversation.

Time to create page: 0.032 seconds
Powered by Kunena Forum