Questions tagged [pygtk]

Cross-platform Python library for creating GTK+ graphical user interfaces using Python. PyGObject is intended to replace this with the introduction of GTK+3.

Filter by
Sorted by
Tagged with
1 vote
1 answer
413 views

GTK3 DrawingArea not rendering/updating other than when looking away and looking back

I am migrating some older code from gtk2 to gtk3 and encountering problems in refreshing/rendering/updating. So gtk3 has moved to use draw instead of the old expose_event and this has caused the ...
Ippa Seppälä's user avatar
1 vote
0 answers
985 views

Satisfy dependencies of python-gtk2 on Ubuntu 22.04

I am trying to install python-gtk2 on Ubuntu 22.04 like so: $ wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-6_amd64.deb $ sudo dpkg -i python-gtk2_2.24.0-6_amd64.deb ...
David42's user avatar
  • 111
0 votes
1 answer
274 views

cool python cairo screen widget needs to be ported from PyGTK to PyGI

I am running Ubuntu 20.04 Mate Desktop. I found a cool old screen widget which shows clock, cpu, memory, Wi-Fi strength. It doesn't have any dependency to screenlet package. Though it's very old I ...
kenn's user avatar
  • 5,154
1 vote
0 answers
157 views

Multiple monitor identifier

I have a multiple monitor setup running Ubuntu 20.04 with gnome. The settings app display section shows a small pop up at the left top with a number to identify individual monitor. Is there a way to ...
Aravindh's user avatar
2 votes
1 answer
5k views

"No package 'pygtk-2.0' found" on Ubuntu 20.04 even after installing python-gtk2 from archives

I am trying to install blueman which seems to have pygtk-2.0 as a dependency. When doing ./configure, it stops here: configure: error: Package requirements (pygtk-2.0 >= 2.12.0) were not met: No ...
kanishk's user avatar
  • 21
1 vote
2 answers
544 views

Colour Picker package of Sublime Text 3 not working in Ubuntu 20.04

I have installed the sublime text Color Picker package, but pressing Ctrl+Shift+C does not pop up color picker gui. I ran the the linux_colorpicker.py file, and I did get the color picker gui, but for ...
Vamsi Mohan's user avatar
12 votes
1 answer
19k views

pygtk not available on Focal Fossa (20.04)? [duplicate]

tl;dr I cannot install pygtk on Focal Fossa (Ubuntu 20.04) anymore but need it for my self-written PyGTK-based Python application. I wrote a Python2 application some years ago based on GTK using the ...
Alfe's user avatar
  • 245
2 votes
0 answers
1k views

How to install pygobject in python virtual env

I've created a python virtual env and I want to intall gi into it. But it returns this error to me. newtron@newtron:~/Documents/PythonProjects/PyQt/rasp-media$ ./bin/python3 -m pip install PyGObject ...
Newtron Malayalam's user avatar
1 vote
1 answer
193 views

Can't run sudo wifi-radar under wayland [duplicate]

I got this particular error when attempting to run sudo wifi-radar. No protocol specified /usr/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display warnings....
Inline's user avatar
  • 217
2 votes
2 answers
867 views

Why do some apps look ugly after upgrade to 18.10?

For example Inkscape, or Deluge: Yaru theme is really nice, but why doesn't it work in some apps?
Pitel's user avatar
  • 263
2 votes
1 answer
2k views

Install pygtk on bash on WSL

pip install pygtk does not work and fails with: Complete output from command python setup.py egg_info: ******************************************************************** * Building PyGTK using ...
Lucidnonsense's user avatar
0 votes
1 answer
1k views

Unable to upgrade from 17.10 to 18.04

When I run the command to upgrade to Ubuntu 18.04 /usr/lib/ubuntu-release-upgrader/check-new-release-gtk I get the following error : /usr/lib/ubuntu-release-upgrader/check-new-release-gtk:30: ...
Bi613's user avatar
  • 1
1 vote
1 answer
2k views

errors were encountered while processing :python-gtk2-dev

I had trouble with packages, I tried for two days without a result.. When I try to update or install any package I'm having this error: Setting up python-gtk2-dev (2.24.0-4ubuntu1) ... File "/usr/...
Mohamed Satti's user avatar
1 vote
1 answer
237 views

Serial Port And pygtk Ubuntu 16.04

I need a example which is received data from serial port and show it to textview. I am using python and pygtk( and glade to design my form) I was try many time but I am not successful! Thanks for any ...
uyghur nature's user avatar
0 votes
0 answers
414 views

Error in importing PyGTK: Not able to use GUI in Docker Container

I am working on remote server using SSH. I am running Docker Container in the Server. In the Container I have PyGTK and when I tried importing it using Python 3.5.2 (default, Nov 23 2017, 16:37:01) [...
Harsh Patel's user avatar
4 votes
5 answers
18k views

kazam fails with "PyGIWarning: Gtk was imported without specifying a version first..."

After installing kazam screen casting software, it is not launching. I am using Ubuntu 17.04. Update: /usr/bin/kazam:32: PyGIWarning: Gtk was imported without specifying a version first. Use gi....
Gaurab Kumar's user avatar
1 vote
0 answers
671 views

Ubuntu 16.04.3 LTS Xenial - Unable to Install gtk+-3, "wayland-egl" not found

So I am trying to setup PyGObject, gtk+-3 on my system to make GUI applications. I have successfully setup JHBuild required to install these packages as mentioned here: https://python-gtk-3-tutorial....
Sloth's user avatar
  • 11
0 votes
1 answer
202 views

PYGTK Application developement help [closed]

Can someone give me a basic idea of what is used here to change w indow when different buttons like overview,folders to save,folders to ignore.How multiple windows are embedded within the single ...
Elango Candy's user avatar
1 vote
0 answers
199 views

How to autostart pygtk program after boot

I am working on python program in Ubuntu that checks the Internet connection and display a image on top panel using GTK and PYGTK module. Now i am trying to autostart my python program after booting....
Ajay's user avatar
  • 11
2 votes
0 answers
952 views

How to solve old GLIB error while installing "pygobject" using jhbuild

I am trying to install pygobject using jhbuild. And I am getting this error: configure: error: Package requirements (glib-2.0 >= 2.48.0) were not met: Requested 'glib-2.0 >= 2.48.0' but version ...
Sameer's user avatar
  • 21
3 votes
1 answer
475 views

How to use equivs-build for creating deb from python app?

For my PyGtk application in Ubuntu I plan to use 'equivs-build' for the purpose of creating distribution deb file. The application is based on ./configure, make, make install . Any body suggest the ...
Anes's user avatar
  • 71
6 votes
2 answers
19k views

python3 is not supporting gtk module

I have Ubuntu 14.04 with python-2.7 and python-3 support. I am porting my python application from python-2.7 to python-3. I have example.py file which is importing below modules. and I #!/usr/bin/...
mrudula's user avatar
  • 477
0 votes
1 answer
364 views

Problem with building jhbuild

I'm new to Linux. I need to install Python gtk+ 3. Before that I'm supposed to install and build jhbuild. I installed most of the dependencies manually, since it was throwing errors. I currently get ...
Abhilash Singh's user avatar
3 votes
3 answers
3k views

Whats the proper way to install Jhbuild?

Im running ubuntu 14.04, and im having difficulty in installing Jhbuild. I followed various links when i faced errors, and they are always the same. The links are: http://python-gtk-3-tutorial....
arvindh's user avatar
  • 145
1 vote
0 answers
351 views

Best way to port PyScripter+GTK programs from Windows to Ubuntu

I have a bunch of small python graphics programs that I developed with PyScripter and GTK on Windows. I was hoping to switch to Ubuntu, but PyScripter is not available in Linux, and Spyder does not ...
MarcioTK's user avatar
4 votes
3 answers
12k views

Python3 cannot import gi

I was attempting to run an indicator for pushbullet without avail. I attempted to run through the terminal when I noticed python3 can not import gi bin > python3 pushbullet-indicator Traceback (...
Tyler Berezowsky's user avatar
10 votes
1 answer
40k views

ImportError: No module named pygtk [duplicate]

I installed the deb files of Fpdb (a poker analysis tool); and i downloaded the program. The problem is that when i try to run it from the terminal i get this: "ImportError: No module named pygtk "; I ...
charlizard's user avatar
1 vote
0 answers
342 views

How to get pygtk working on Ubnutu14 with Python3 [duplicate]

I'm trying to run a simple helloworld.py example for pygtk on Ubuntu 14, this is my Ubuntu version info: This is my ubuntu version: Distributor ID: Ubuntu Description: Ubuntu 14.10 Release: 14....
Basel Shishani's user avatar
1 vote
1 answer
1k views

How to get filename from FileChooserButton in PyGTK?

I'm using Glade and PyGtk to develop an application. Currently I'm using a button under a toolbar to open files using this code: def on_openVideo_clicked(self, widget): dialog = Gtk....
AliGH's user avatar
  • 121
0 votes
1 answer
4k views

Updating from 12.04 to 14.04 - Autolaunch error: X11 initialization failed

I'm attempting to upgrade my work machine from 12.04 to 14.04, but having issues. sudo update-manager -d: ** (update-manager:20416): WARNING **: Command line `dbus-launch --autolaunch=...
Kieran's user avatar
  • 1
1 vote
1 answer
140 views

how do I make a python program write directly to the command line?

This is the code I have, I want it so that I can write to the command-line from the window after I press the "SEND" button. If I want to see my "ifconfig" in the terminal, the command gets writen in ...
user3368897's user avatar
4 votes
1 answer
10k views

How to get text buffer from file and loading into TextView using python and Gtk+3

I want to create an Ubuntu App that uses Gtk+3 and Python. However, I would like to know how I can get the text buffer from a file and load it into a TextView. Does anyone know how this can be done ...
TellMeWhy's user avatar
  • 17.5k
0 votes
1 answer
56 views

Cannot open application in Quickly

I'm creating web browser in Quickly. When I am running my application (quickly run) I have errors about gtk. Without the WebKit code it can run. Sorry about my english. Errors: /usr/lib/python2.7/...
Piesek64's user avatar
18 votes
2 answers
39k views

How does one install pygobject from the official repository?

I want to install the Pygobject package on my Ubuntu 13.10. I tried the JHBuild option but I got stuck at the end of a very lengthy process. The tutorial website of Pygobject says that it comes ...
Vineet Kaushik's user avatar
1 vote
0 answers
121 views

Recommended way to check/fire alarm in Python (PyGI/PyGTK)

I am learning to develop an application by using Quickly (quickly create ubuntu-application). This application will stay in Application Indicator / Notification Bar and only work when a defined "alarm"...
fikr4n's user avatar
  • 1,255
2 votes
1 answer
4k views

Set Window Icon to Gtk Stock Icon in PyGtk

I am trying to add a Gtk stock icon to my window. Here is the code: #! /usr/bin/python from gi.repository import Gtk class MyWindow(Gtk.Window): def __init__(self): Gtk.Window.__init__(...
Anonimista's user avatar
0 votes
1 answer
216 views

Is there a way to attach a pygame window to glade window in quickly?

I am trying to develop a game so that when i press a button which is created using glade window i should be able to run the pygame window i have succeeded so far but the pygame window opens separately ...
user2511270's user avatar
2 votes
1 answer
115 views

PyGTK 2 GTK 2 alternative to STYLE_CLASS_PRIMARY_TOOLBAR

In GTK3 toolbar context style can be set to Gtk.STYLE_CLASS_PRIMARY_TOOLBAR to make it look native in Ubuntu, but in GTK2 there is no Toolbar.get_style_context() method and no ...
Maxim's user avatar
  • 23
2 votes
1 answer
851 views

Python unity indicator applet and glade child window exits at the same time

Since I don't have much reputation. The original question has been posted in stackoverflow and here is the link: Python unity indicator applet and glade child window I have created an unity ...
Samundra's user avatar
  • 121
0 votes
1 answer
133 views

What is the name of the icon for usb drives in Ubuntu?

I am developing a PyGtk application that I would like to display the image for a USB stick from the user's theme. However, I cannot seem to pin down the name of the icon, and Google is no help. ...
dejay's user avatar
  • 195
5 votes
1 answer
10k views

running gnome-terminal with no window border on startup in xubuntu 12.10

I created a script to launch a session of gnome-terminal when I log into xubuntu. I specifically wanted it in a specific position on the window, and with no window borders (surprisingly, there's no ...
lxvk's user avatar
  • 53
2 votes
2 answers
666 views

Thread works only on gui events - pygtk

I am developing a multithreaded application in pygtk using quickly and stuck with threads. So I am experimenting with various possibilities and found out that my thread work only when I do something ...
Sreevisakh's user avatar
  • 1,516
3 votes
1 answer
1k views

PyGTK TextBuffer adding Tags and reading text

As in topic I have TextView() and TextBuffer() added to it, I also have Tags created so when I select text and click button it will make text BOLD or something. Up to this point all works well, now I ...
Majster-pl's user avatar
1 vote
1 answer
226 views

How can I bind Gio.Settings of TextBuffer or TextView?

I'm trying to bind a TextView to the key "text" by TextBuffer. I get the text, but this property is not recorded. widget = self.builder.get_object('textbuffer_text') settings.bind("text", widget, "...
Grzegorz's user avatar
1 vote
1 answer
99 views

My program needs a other program

For my program i need android-tools-adb. How can i include this in my debian package? Or is there an other way to handle this problem? I remember that Rhythmbox asked you an question if you want to ...
Thomas15v's user avatar
  • 1,593
3 votes
1 answer
1k views

PyGTK changing theme for popup menu

I spent few hours searching on google and I gave up now... I need to change background for popup menu in my app. It set to whatever system default theme is... and I need this to be set to Radiance ...
Majster-pl's user avatar
0 votes
1 answer
195 views

pygtk inline toolbar background

as in topic I need your help with inline toolbar for my app. I'll need this background bar to be expanded to the end of the widget while buttons remains on the left, as it is in keyboard layout ...
Majster-pl's user avatar
1 vote
1 answer
267 views

How to use small icons in kupfer?

I don't like the large (128px) icons used in Kupfer, how can I configure it to use smaller icons? The theming documentation suggests it can be done. I've duplicated the built in customtheme.py ...
Abhi Beckert's user avatar
1 vote
1 answer
252 views

Upgrade Webkit PyGTK Libraries

I'm developing a PyGTK-HTML5 Application (Using Quickly), but the webkit libraries (WebView) are a bit old, at least for using some of the latest HTML5 APIs (like IndexedDB) is it possible to upgrade ...
victorhqc's user avatar
  • 339
0 votes
1 answer
933 views

jhbuild sanitycheck not moving

I am following Jhbuild documentation. while doing jhbuild sanitycheck I am getting following problem. root@august:/home/frank/jhbuild# jhbuild sanitycheck You should not run jhbuild as root. root@...
Raja G's user avatar
  • 102k