Questions tagged [pygtk]

PyGTK is the Python binding for the GTK+ widget library.

PyGTK lets you easily create programs with a graphical user interface using the Python programming language and the GTK+ library. GTK+ provides all kinds of visual elements and utilities, and is the official toolkit of the GNOME Desktop.

PyGTK applications are multiplatform and able to run, unmodified, on Linux, Windows, MacOS X and other platforms.

For more information, see the Wikipedia page of PyGTK.

2238 questions
0
votes
2 answers

gtk PrintSettings default values?

How can I get default print values (default printer, paper size), BEFORE running PrintOperation.run() ? Thanks.
Marin
  • 1,311
  • 16
  • 35
0
votes
4 answers

Gtk Button inner-border

I add a button to HBox, with expand equal to False, but I want the button to have more spacing between its label and border. I assume it is "inner-border" property, but it is read-only. How can I set it to e.g. 4px?
Marin
  • 1,311
  • 16
  • 35
0
votes
2 answers

PyGTK Spacing in an HBox

I'm new to GTK, I'm trying to figure out how to accomplish something like this: +---+------+---+ | | | | | | | | | | | | | | | | | | | | | | | | +---+------+---+ I want this done in an HBox. How…
Pwnna
  • 9,178
  • 21
  • 65
  • 91
0
votes
0 answers

p4v: You need to get version 2.0 (or later) of PyGTK for this to work

I installed p4vasp and I am getting an error which I am not able to resolve. You need to get version 2.0 (or later) of PyGTK for this to work. You can get source code from http://www.pygtk.org I have also attached diagnostic script.…
0
votes
0 answers

Using GLib.IOChannel to send data from one python process to another

I am trying to use GLib.IOChannels to send data from a client to a server running a Glib.Mainloop. The file used for the socket should be located at /tmp/so/sock, and the server should simply run a function whenever it receives data. This is the…
josh
  • 9
  • 1
  • 3
0
votes
0 answers

How do I setup VSCode Python to debug code hosted in another app?

I'm new to Python, but have experience with VSCode. I'm trying to debug a Python plugin running on a PyGTK-based application using VSCode, but I suspect my configuration is incorrect. I can attach the debugger to the application and hit breakpoints…
ATL_DEV
  • 9,256
  • 11
  • 60
  • 102
0
votes
1 answer

Weird Post-Run Animation Error

I have a Python 2.7/PyGTK 2.24 project. I'm building on Linux Ubuntu 11. I am using the following code to animate an image's movement across the screen. def move_fish(): global fishmove, flipped if fishmove < 440 and flipped ==…
CodeMouse92
  • 6,840
  • 14
  • 73
  • 130
0
votes
2 answers

Motion Animation

I have a project in Python 2.7 and PyGTK 2.24. I am using the following code to create a motion animation of a gtk.Image inside a gtk.Fixed. def fishmove(): global fishmove if fishmove < 640: fishmove = fishmove +…
CodeMouse92
  • 6,840
  • 14
  • 73
  • 130
0
votes
1 answer

python Gtk3 - Set label of button to default value of None

I am trying to reset a label of a button to its initial (default) value of None, which does not work as expected. Here's the minimal example: from gi import require_version require_version('Gtk', '3.0') from gi.repository import Gtk class…
Richard Neumann
  • 2,986
  • 2
  • 25
  • 50
0
votes
1 answer

gtk.fixed layout laid out events?

I have a gtk.Fixed. I move components inside it around using: myFixed.move( myEventBox, new_x, new_y ) What event do I listen for to know when myEventBox has been rendered at its new position? Do I connect to the fixed or the eventbox? MORE…
jedierikb
  • 12,752
  • 22
  • 95
  • 166
0
votes
1 answer

How to Pygtk WindowTypeHint to DOCK on XFCE and have it visible on the desktop

So I've run into an issue where whenever I set the WindowTypeHint to anything other than normal the window just disappears. I've verified the hint type with print.Below is my sample code import gi gi.require_version('Gtk', '3.0') from gi.repository…
Shimo
  • 1
  • 1
0
votes
1 answer

pygtk progressbar is not working

when my program receiving new file file is copied fine but progress bar is not moving... if possible please suggest me a better algo.. Thanks def filetransfer(self): s=socket.socket(socket.AF_INET,socket.SOCK_STREAM) …
Shantanu Banerjee
  • 1,417
  • 6
  • 31
  • 51
0
votes
1 answer

GTK freezes when opening dialog if user is moving the main window

The following code freezes when a user is moving the main window, and a dialog box will pop up. https://i.stack.imgur.com/Y1n87.jpg Has anyone noticed this problem before? I'm using idle_add to display the message dialog, but that doesn't solve the…
0
votes
1 answer

How to disable or apply custom menu to GTK (PyGTK) Notebook pages?

I am trying to apply custom menu to tab pages on my notebook control. I need to be able to select certain specific action for the entire page and i figured the tab label would be the best place to start. So, i created a EventBox, applied Label as…
Tomasz W
  • 1,841
  • 1
  • 16
  • 25
0
votes
1 answer

PyGtk : Modify Background color/image of gtk FileChooserButton

I have tried following to change background color for Filechooser Button, but nothing changed.. gtkrc file: style "FilechooserButtonStyle" = "button_style" { base[NORMAL] = '#F5F5F5' base[SELECTED] = 'red' bg[NORMAL] = 'green' bg_pixmap[NORMAL]…
Yajushi
  • 1,175
  • 2
  • 9
  • 24
1 2 3
99
100