Currently I'm writing a GUI program with Gtk3 in Python. I'm placing a Gtk Calendar in my window but my problem is, that the calendar does not fill the whole area.
class MainWindow(Gtk.Window):
def __init__(self):
…
So,I am making a pygtk appindicator and requires a certain function to be called regularly.
gobject.timeout_add(millisec,function) is one solution to this.
I have imported all gi modules in this way:
import gi
gi.require_version('Gtk', '3.0')
from…
I am trying to write a Hexchat plugin in Python, which would start a server and then communicate with it using DBus and python-dbus library. Everything works fine, until I try to unload the plugin or close Hexchat (which unloads all plugins). The…
I got the class below and i need to call self.webview variable from a function inside another class. how do i achieve that.
class Window(w):
def __init__(self):
self.webview = WebKit2.WebView()
class anotherclass:
def…
I have a custom GtkFileChooserDialog created with Glade. The Modal property is marked.
I also have a GtkFileChooserButton that uses this GtkFileChooserDialog as its dialog:
class ImgChooserBttWithCapture(Gtk.FileChooserButton):
"""
The…
I recently wrote a command line script that takes a range of pages from a pdf and makes a new pdf out of them. I am now trying to turn that script into a small gui program.
I am having problems getting the slice method code to run when the button is…
I have a textfile with the current data:
Firefox 2002 C++
Eclipse 2004 Java
Pitivi 2004 Python
Netbeans 1996 Java
Chrome 2008 C++
Filezilla 2001 C++
Bazaar 2005 Python
Git 2005 C
Linux Kernel 1991 C
GCC 1987 C
Frostwire 2004 Java
I want to read it…
I'm looking for a way to set a background image to my window. Something like the gnome-weather application:
The image is on the background and other components are on it.
That's my current window:
And I want a background more or less like…
If my memory is not deceiving me, I read somewhere that you can use the system icons (Icon Naming) as second option if the "primary" is not available. In other words, we can choose an icon that is in a directory any and if it is not available a…
Is there a way to create objects and work with them not in the main thread? I've read this link, but don't understand how to apply it to my example (see below).
import threading
from gi.repository import Gtk, Gdk, GObject, GLib
class Foo:
…
I never needed to work with camera before, so I do not know where to start.
I need to display the image of a real-time camera, to capture and save to a file.
I'm using python3 and gtk3.
Does gtk has any feature for this?
I am trying to install pygtk-2.24.0 from source in centos6.8, for that pygobject-3.0 is installed from source and pkg-config --list-all | grep pygobject returns pygobject-3.0 PyGObject - Python bindings for GObject. Exported…
So I have made a small gui application using pygobject.
Works fine and all when executed from the directory.
Tried to make a python package out of it but get this error everytime:
In [2]:…