Rohit S
Rohit S

Reputation: 538

How to change/switch windows using Gtk.Application Gtk+3 Glade Python?

I read this tutorial- https://python-gtk-3-tutorial.readthedocs.io/en/latest/application.html

It says in the first para -

Gtk.Application encompasses many repetitive tasks that a modern application needs such as handling multiple instances, D-Bus activation, opening files, command line parsing, startup/shutdown, menu management, window management, and more.

How do I do startup/shutdown, window management and menu management using Gtk.Application? I could not find any tutorials, examples or API documentation. Can anyone suggest how to do this? I am using Python 2.7.14 and Pygobject(pygi-aio-3.24.1_rev1-setup). Thank in Advance.

Upvotes: 0

Views: 1750

Answers (1)

theGtknerd
theGtknerd

Reputation: 3745

startup/shutdown means to start or shut down the app. Which makes it easier to launch your app by double clicking a file that would normally be used in said app. Simple example

menu management This can create a global, identical menu for all windows within your GtkApplication. It can also make Mac menus easier. Since it looks like you are using Windows, this won't really help you. docs

window management You can control and monitor which windows are opened or being used, and then reopen those windows next time your app is launched. docs

Some of these features can be used for other purposes, but most GtkApplication features only are useful for advanced programming requirements.

Upvotes: 1

Related Questions