Tagged Questions
0
votes
0answers
15 views
Spin button General properties in Glade arranged in a weird manner
Can you see in the properties you have to scroll all the way to the right to see whats on the buttons.
Is this a bug or can I edit this from somewhere, this only happens in spinbuttons and their ...
1
vote
2answers
63 views
Gtk.SelectionMode.MULTIPLE allows selection of only one row in Gtk.TreeView
I'm developing an application using Quickly. I have a Gtk.TreeView with a Gtk.ListStore as its model. The selection mode of the Gtk.SelectionMode is set to Gtk.SelectionMode.MULTIPLE.
The problem is ...
2
votes
2answers
54 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 ...
1
vote
0answers
75 views
Ubuntu 12.10 - set alternating row colors in gtk3 TreeView
Ubuntu used to have alternating row colors for gtk TreeView widgets. Some applications still do, like Banshee. Alternating row colors would really help my application (written in python 2.7, and using ...
1
vote
1answer
70 views
How do I combine two toolbar buttons into one?
In my application toolbar, I have two toolbar buttons Travel Planner and Departures as shown below,
I need to change it this,
As you can see in the 2nd image, it seems that 1 button has 3 ...
2
votes
0answers
54 views
How to make Gtk spinbutton symbolic in 12.04 in only a specific application?
I am currently developing an application for Ubuntu 12.04 and Ubuntu 12.10 systems. My application is completely monochromatic except for the spinbuttons as seen in the screenshot below.
This issue ...
1
vote
1answer
114 views
Highlighting Gtk Entry fields on invalid input by user
I am creating a program using Python and Gtk. I want to guide the user by pointing out mistakes if any. I have attached a sample glade interface below. Here the user is supposed to enter a valid ...
1
vote
0answers
126 views
Can't compile a GTK+ program, errors in GTK-files
for years ago I downloaded GTK+-dev. Now I would create a programm with GTK+. Simply startet with the example on http://developer.gnome.org/gtk3/stable/gtk-getting-started.html, I get lots of ...
1
vote
1answer
93 views
Creating a toolbar with buttons like Software Center
How do I create a toolbar with buttons that look like the ones in Software Center?
I've figured out out to set the style of the toolbar to Gtk.STYLE_CLASS_PRIMARY_TOOLBAR, but I want to set the ...
0
votes
0answers
82 views
I can't compile a C source file written with VIM gtk libraries included.Probably I haven't configured well gtk+ [duplicate]
I installed gtk+,but I can't make use of the gtk libraries (include files) when I write a C source file using VI in terminal and compile it with the command that I mention above.
...
1
vote
0answers
128 views
Keybindings for individual letter keys (not modifier-combinations) on a GtkTextView widget (Gtk3 and PyGI)
I've been able to set several keybord shortcuts for a GtkTextView and a GtkTextEntry using the new css provider system. I'm finding, though, that I only seem to be able to establish keybindings for ...
4
votes
1answer
380 views
How to get rid of the background gradient of the inline GtkToolbar?
When you run the below code, it will show an inline toolbar in a window. Notice how the inline toolbar has a stand-out backbround. Is there a way to apply CSS to get rid of it and make blend with ...
8
votes
2answers
481 views
How to create a sliding widget (GTK+, Quickly)
Recently I've seen this widget in Gedit:
It appears when you press Ctrl + F. What I am interested is in how to get the sliding effect. Any suggestion will be appreciated.
1
vote
0answers
101 views
Is it possible to control the placement of a Gtk.Scale.Button's pop-up?
I'm writing a little app with Python and GTK+ using Quickly and Glade. I have a Gtk.Scale.Button inside of a toolbar. On button press, the pop-up with the scale shows directly under the mouse, moving ...
0
votes
2answers
213 views
Apply primary-toolbar background behind GtkEntry widget with GTK3
In PyGI (GTK3), how can I make a GtkEntry widget appear against the same background applied (by the user's theme) to the primary toolbar. I tried adding the same style class like this:
...
2
votes
1answer
856 views
How can I add cut/copy/paste functionality to my application?
I'm developing an Electoral Calculator (https://launchpad.net/electoralcalculator) using Python 2.7, Gtk+3 and Glade and I want to add cut/copy/paste functionality to my application.
I want to give ...
2
votes
2answers
867 views
Python GTK 3 IDE
Just a Quick Question, to Check if there are any available IDE for Python GTK 3.
IE: An IDE which give the programmer an auto complete feature with method Description Etc.
1
vote
1answer
114 views
Python Gtk event ignore
I would like to ignore some key events in a text view, now i do the following
def on_key_press_event(self,source,event):
keyname = Gdk.keyval_name(event.keyval)
if(keyname=="Return"):
...
1
vote
2answers
205 views
Quit application on Ctrl+C in Quickly framework
I found that when I run my application using "quickly run" and press Ctrl+c to kill it, the application does not quit. I am using Quickly 12.04.
For GTK2 applications, I used
def ...
2
votes
1answer
72 views
What are the default arguments for ClutterGst?
Hello everyone I am trying to make a simple video player using Gtk3 python & Gstreamer. I am also using Clutter,ClutterGtk & ClutterGst
The problem arises when initialise the ClutterGst like:
...
2
votes
1answer
334 views
How do I implement a quit dialog in Gtk3?
I have almost finished my Ubuntu App Showdown app, but would like to make it somewhat more robust, upon application quit I iterate through the open files checking for unsaved files, if any are found I ...
0
votes
1answer
69 views
Which packing constant to use for set_child_packing() in Python
I want to change a child of a box's padding; so I am using set_child_packing on the box holding the child. I can't figure out what to use as the constant for for the pack_type. Using PACK_START from ...
4
votes
2answers
606 views
Creating widgets using GtkBuilder
I am using Glade to design a Box with widgets and then load these widgets into my UI at run-time. To create each Box with widgets at run-time, I create a new GtkBuilder, call add_from_string passing ...
4
votes
1answer
194 views
How do I force a redraw using python in gtk3?
Apparently, in Gtk3 the 'expose' event/signal is replaced with the 'draw' signal.
How do I force a redraw using python in Gtk3? I was not able to find any window invalidation function.
3
votes
1answer
250 views
How to apply gradient background to GtkWidget in GTK3?
Is it possible to use gradient as a background for generic GtkWidget?
Related question: How to change GtkWidget background in GTK3?
1
vote
1answer
1k views
How to change GtkWidget background in GTK3?
I'm trying to use override_background_color on some GTK3 widgets but they still showing up with the default background color.
0
votes
1answer
123 views
Opening a Window within an already open window (Quickly/Glade)
I have a question regarding window and button implementation. If I have a toolbar set up, and I have a button on it, is it possible to get it to open a window right within the program? I mean like ...
2
votes
2answers
106 views
Why does GtkCalendar counts months from 0?
So I spent several hours in rage, figuring out why isn't my code writing to the /sys/class/rtc/rtc0/wakealarm correctly. The problem is that it doesn't return anything if the value is wrong. And ...
0
votes
1answer
63 views
How to use Events (GdkEvents) in Glade
When selecting a widget, in the common tab you can find the events control.
What is it for? How to use it?
Thanks!
2
votes
1answer
102 views
Ready-to-use time and/or datetime selection widgets for GTK3?
I've checked hamster-applet, gnome-control-center datetime and gnome-schedule. They all define a different datetime selection composed from basic widgets. I'm surprised it wasn't made available as a ...
0
votes
1answer
208 views
How to hide a GTK window in Python before call or os.system
So, I'm depeloping a Python/GTK app which, after showing an assistant, it hides the assistant's window and runs an external app. The problem is that window.hide() doesn't works if, after the command, ...
1
vote
2answers
124 views
Problems related with spin buttons
So, I have an important problem related with spin buttons in Python/GTK3. I'm trying to create a spin button in my project, Virtuam, and it seems to work... but with a bug which blocks the +/- ...
2
votes
1answer
191 views
GTK3 tabs with big icons
I want to implement something similar to the ubuntu software center's tabs.
What widget is it?
Any working example in python where I could take a look?
Is this widget available in Glade?
Thanks ...
3
votes
1answer
162 views
Can't add page in a notebook
I am having some trouble adding a page to a Notebook widget. The error I get is this:
AttributeError: 'function' object has no attribute 'append_page'
I assume this means the object pages in the ...
1
vote
1answer
55 views
How to keep Text within GTK CellRenderers at center?
Hello I am using GTK3 CellRenderers in my project, but I want to put text within that at Center, how will I do that?
5
votes
1answer
204 views
Why does creating a new tab give me 'TypeError: Expected Gtk.Widget, but got GObjectMeta'?
def on_btn_new_subject_activate(self, widget):
self.subjects.append_page(Gtk.TextView(), "Testing")
I am trying to create a new tab on a text area but I whenever the signal is called by the ...
3
votes
1answer
247 views
Use primary-toolbar with Mono
I am trying to create an application for the Ubuntu App Contest. And I defined image of the design, but I am having problems with it. Principally with the primary-toolbar design, so it would look like ...
5
votes
2answers
950 views
How to add vte terminal widget in GTK3?
I'm trying to add vte widget in my application and the examples I've found use .fork_command() to execute a command in that widget.
But according to
...
3
votes
1answer
584 views
Glade: How can I set the value of a spin button?
I've done some spin buttons with Glade for my Python/GTK3 app, but I don't know how to set things like default, lower or higher value. How can I do it?
Using the following things for development:
...
0
votes
1answer
993 views
How to connect GTK3 button click events to callbacks
So, I'm developing my 1st app with GTK3 and I don't know how to link my buttons with their respective defs. Can anyone post a tutorial, an example or some docs?
Using next things for developing my ...
4
votes
1answer
275 views
Python/GTK3 app crashing on importing “indicate” (python-indicate)
I'm trying to integrate my Python/GTK3 app with Ubuntu's messaging menu and every time I try to import "indicate" (python-indicate) my app crashes, with the following traceback:
...
1
vote
1answer
259 views
Desktop file for my python gtk3 app does not load the app
I am creating an GTK3 python application for Ubuntu. At the moment the application installs in the following locations.
In /opt/NSTrain folder where NSTrain is the name of my application. The NSTrain ...
1
vote
1answer
366 views
gtk3 window is not redrawn correctly
I am creating a simple GTK3 application. The main toplevel window has a search button which will display another toplevel gtk3 window. When I click the close button (near the titlebar) on the second ...
4
votes
2answers
535 views
KEY.is_pressed() in gi.repository.Gdk?
I was wondering if anyone knew how to detect if a key is currently pressed with either Gtk or Gdk and python? I don't want to use the key-pressed or key-released event for this scenario, but rather ...
1
vote
2answers
649 views
Python, Gtk3 and Gstreamer
This isn't a really happy combination, but it does work for the most of the time. However, I just bumped into a problem with Gio.File. This will always result in TypeError and Python segfaulting:
...
9
votes
3answers
439 views
GtkIconView doesn't automatically fill the space with icon when user resizes the window
In the Ubuntu Accomplishments project we are having a few unusual bugs:
https://bugs.launchpad.net/bugs/986708
https://bugs.launchpad.net/bugs/974728
Namely that we have a window with a ...
0
votes
1answer
126 views
Focusing a specific application instance by code?
I'm writing an application using Python and GTK3. This application will open instances of other applications, such as GEdit. Now, I'd also want my application to be able to focus each of those ...
2
votes
1answer
518 views
Creating a Gtk window with input shape mask in python
I am trying to create a Gtk3 Window with a custom input mask, so that the window wouldn't receive any mouse clicks. This is a piece of code that I've came up with:
surface = ...
1
vote
0answers
304 views
How to use Glades ActionGroup correctly? [closed]
Could someone give me an example how to use Glade's ActionGroup with a Gtk.Builder in a Vala-Application?
If I have an ActionGroup with an Action save, and on this action I've set the activate Signal ...

