Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I ended up merging both the windows above and changing the notebook's page when each of the toolbar buttons are pressed. I also hid the tabs of the notebook so it doesn't look like there was a notebook there at all.</p> <p>Here's the python file that handles the signals when the buttons are pressed:</p> <pre><code>#!/usr/bin/env python3 from gi.repository import Gtk class Handler (): '''Clicking the toolbars''' def on_tool_startpage_toggled(self,nb_mechanig): nb_mechanig.set_current_page(0) def on_tool_unitysettings_toggled(self,nb_mechanig): nb_mechanig.set_current_page(1) def on_tool_compizsettings_toggled(self,nb_mechanig): nb_mechanig.set_current_page(2) def on_tool_themesettings_toggled(self,nb_mechanig): nb_mechanig.set_current_page(3) def on_tool_desktopsettings_toggled(self,nb_mechanig): nb_mechanig.set_current_page(4) # Basic builder setting up builder = Gtk.Builder() builder.add_from_file("mechanig.glade") builder.connect_signals(Handler()) # The main Mechanig window that needs to be shown mechanig_main = builder.get_object('mechanig_main') # This signal is emitted when you close the window, # which triggers Gtk.main_quit, which tells the main Gtk loop to quit mechanig_main.connect("delete-event", Gtk.main_quit) # This is required, otherwise Gtk leaves the window hidden. # Useful, like with our dummy "windows" that get reparented mechanig_main.show_all() # Runs the main loop Gtk.main() </code></pre> <p>And the window now looks like this and this is the closest I can get to what I wanted:</p> <p><img src="https://i.stack.imgur.com/BKIcM.png" alt="Mechanig-glade-previewer"></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload