Search code examples
python-3.xgtk3pygtk

How do I make a window draggable without a header?


So basically I have this main window with just a bunch of buttons on it. I am hiding the default header by using self.set_decorated(False). I want to be able to drag the window around my screen by clicking anywhere that's not a button. Is this possible? I haven't been able to find anything on this except for self.begin_move_drag(self.button_drag, event.x_root, event.y_root, event.time) which I don't really understand.


Solution

  • hb.props.custom_title = Gtk.Label(label=" ")