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
1answer
82 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....
2
votes
2answers
496 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?
1
vote
1answer
624 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 ...
0
votes
1answer
523 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: ...
0
votes
1answer
425 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/...
0
votes
1answer
106 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 ...
0
votes
0answers
203 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) [...
0
votes
2answers
6k 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....
1
vote
0answers
487 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....
0
votes
1answer
105 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 ...
1
vote
0answers
117 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....
2
votes
0answers
350 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 ...
1
vote
0answers
45 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 ...
6
votes
2answers
11k 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/...
0
votes
1answer
304 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 ...
3
votes
3answers
2k 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....
1
vote
0answers
287 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 ...
4
votes
2answers
6k 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 (...
10
votes
1answer
33k 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 ...
1
vote
0answers
210 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....
1
vote
1answer
845 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....
0
votes
1answer
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=...
1
vote
1answer
127 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 ...
3
votes
1answer
7k 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 ...
0
votes
1answer
51 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/...
17
votes
1answer
27k 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 ...
1
vote
0answers
110 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"...
2
votes
1answer
3k 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__(...
0
votes
1answer
123 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 ...
2
votes
1answer
93 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 ...
2
votes
1answer
770 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 ...
0
votes
1answer
93 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. ...
4
votes
1answer
7k 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 ...
2
votes
2answers
446 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 ...
2
votes
1answer
972 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 ...
1
vote
1answer
171 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, "...
1
vote
1answer
92 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 ...
3
votes
1answer
920 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 ...
0
votes
1answer
174 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 ...
1
vote
1answer
246 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 ...
1
vote
1answer
238 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 ...
0
votes
1answer
888 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@...
3
votes
1answer
172 views

Icon name for unlocked keyring

I am working on a program and I want to implement icon denoting keyring state. If you start seahorse you'll see it has the same icon of padlock in two states, locked and unlocked. I am unable to find ...
1
vote
1answer
648 views

Is there a auto-complete tag like control for quickly/pygtk?

I am making a todo like application with indicator support using glade/python/pygtk/glade. I am making a form to save a Todo item. Each todo will belong to 0 or more projects. When a user enters a ...
2
votes
1answer
919 views

How extract strings from a .ui file (glade) with gettext?

I'm trying to extract the strings from this file: http://bazaar.launchpad.net/~gufw-developers/gui-ufw/gufw-13.04/view/head:/data/ui/add.ui Which is the command for it? This not works: user@...
1
vote
2answers
2k views

'module' object has no attribute 'element_make_factory'

i have this code : import pygst import st, pygtk player_name = gst.element_make_factory("playbin", "Multimedia Player") player_name.set_property("uri", "../media/alert.mp3") player_name.set_state(...
2
votes
1answer
14k views

Playing sounds in Python Quickly without any extra libs?

I was wondering is it possible to play sounds in Ubuntu using Quickly and Python without including any libs like pygame or pymedia or anything ? Just the stock packages that come with Python ? Thank ...
1
vote
3answers
117 views

how to kill an app started by `quickly run`

I am building an app and it hangs on some thread . how can i kill that app ? tried ctrl+c but it didn't work (the icon stays in the notification area) thanks
1
vote
1answer
662 views

how to create a pygtk status bar icon using quickly python

How can i add an icon to the status bar using python ? like the skype icon ? and is it possible to use the default notifications like those that appear when connecting or disconnecting to a wifi ? ...
1
vote
1answer
308 views

Installing Ubuntu One on Ubuntu 11.10 server

I have installed "Ubuntu One" on an Ubuntu server 11.10 based on these instructions: How do I configure Ubuntu one on a server? Everything went smooth during installation. However when I try the ...