How to stick to the menu at the top of the PyGTK window

How can I hold the menu at the top of the window? enter image description here

I use Gtk.VBoxand I added Gtk.MenuBarinside. I am using gtk3

Source code: http://pastebin.com/YHZQLzZg

thanks

+4
source share
2 answers

The problem was using

window.set_border_width(10)

I removed the border width and everything works fine.

0
source

, ( ), Gtk set_decorated(), False . , (, , ). , , Gtk Python.

Gtk set_decorated function

0

Source: https://habr.com/ru/post/1617524/


All Articles