I’ve made a simple Gtk3 gui using glade for my python 3 program. I would like to be able to retain all of the widget properties when the gui is opened then closed. For example, if a user has moved a slider or checked a checkbutton I would like to retain that setting. Also I ..
First I wanted to change the default keyboard shortcuts for xed (https://github.com/linuxmint/xed) editor similar to gedit (https://github.com/GNOME/gedit). Gedit has an option to do that via python plugin (https://github.com/foolo/gedit_custom_keys/). The plugin is changing accelerators like add_accelerator (GTK_APPLICATION (application), "win.find-next", "<Primary>G"); add_accelerator (GTK_APPLICATION (application), "win.find-prev", "<Primary><Shift>G") but xed doesn’t have this option. I was trying to change ..
I want to switch pages with the help of buttons in Gtk.Stack. There are 4 pages, and the title bar of the application has one forward and one back button. I want it to go to the next page when the forward button is pressed, and to go to the previous page when the back ..
I have a Gtk.TreeView with a Gtk.ListStore of columns. Given an arbitrarily sized window, changeable by the user, with a re-sizeable "Name" column, and all other columns fixed size ~ What I want to happen, is that when an extra-wide name string is inserted into the list, that its text is truncated, ideally with an ..
I have a simple Python 3 application and it uses GTK3 GUI. The application has an application ID and two separate processes are started when the application is started: 1) Main.py 2) test1 What can be done to start the application with a single process (test1)? Here is the Python code (in the /usr/share/test1 folder): ..
>>> import gi >>> gi.require_version(‘Gtk’, ‘3.0’) >>> from gi.repository import Gtk Traceback (most recent call last): File "/usr/lib/python3/dist-packages/gi/importer.py", line 138, in load_module introspection_module = get_introspection_module(namespace) File "/usr/lib/python3/dist-packages/gi/module.py", line 275, in get_introspection_module module = IntrospectionModule(namespace, version) File "/usr/lib/python3/dist-packages/gi/module.py", line 122, in __init__ repository.require(namespace, version) gi.RepositoryError: Typelib file for namespace ‘Atk’, version ‘1.0’ not found During handling ..
I have a program in Python3 that can change the volume of my system. The behavior I want is it to be like a popup window which will destroy itself after the window, first, get focus and, after, lost focus. My code has two problems. The first, It does not close itself when the focus ..
I’m trying to write a small application GUI (GTK) application with Python 3.9 and PyGObject that reads from a log file and displays the data in a GUI window. In this particular case I’m trying to continuously read from the systemd Journal, which can be done e.g. with journalctl -f in via the terminal. For ..
I have a class-function that iterates through a Gtk.TreeStore searching for a child-node. If a matching node is found, I want to change the selection to that node. My function returns an iterator. I suspect this is the root-case of the problem, but I’m not sure what else to return. All the Gtk.TreeSelection functions seem ..
I need to run a Python function by using GLib without freezing/interupting the GTK3 GUI. GLib.timeout_add(millisecond, function_name) is not adequate. More control is needed in my code. But it gives a warning and it does not repeat the function in every seconds when the following code is used: import gi gi.require_version(‘Gtk’, ‘3.0’) from gi.repository import ..