I'w trying to keep at ListStore non-text objects using snippet I found. These are the objects:
class Series(gobject.GObject, object):
def __init__(self, title):
super(Series, self).__init__()
self.title = title
gobject.type_register(Series)
class SeriesListStore(gtk.ListStore):
def __init__(self):
super(SeriesListStore, self)....
Hi,
I would like to change the image of GTK Scrollbar,
i.e) I want to remove the standard looking scrollbar, and add my resources to it.
I dont mind touching gtk code.
I am sure that GTK will maintain all the images as a resources,
Can any one please locate me, where to change the images?
Thanks in advance
Dinesh P
...
In Python, what is the best way to get the
RFC 3339 YYYY-MM-DD text from the output of gtk.Calendar::get_date()?
...
From what I understand about twisted, nothing running in the reactor thread should block. All blocking activities should be delegated to other threads, to fire callbacks back into the reactor thread when they're done.
So does this apply to gtk things as well? For example, I want to display a "connection failed" message if the connection...
Hello,
I am writing a GTKmm window program; the main window creates two buttons, one for English and one for Chinese. The user can click on the button to bring up a different window in the appropriate language. Currently I am having trouble initializing the multiple-item container inside the main window. It is an object of type MainWindo...
How can I get my gtk buttons to look more like standard windows buttons? In this particular example, I have OK and Cancel buttons, but they're a different size than the OK and Cancel buttons in every windows app. How can I change their size to look more like windows'?
...
Environment:
Built interface using Glade3.
Backend is written in Python using the GTK+ Builder library.
-
Although I know the method I need to use to update a label's text (label.set_text("string")), I'm having trouble obtaining the label object in the python code.
Here's what my code looks like:
#!/usr/bin/python
# Filename: Hel...
I am interested in the "best approach" to making sure your Linux & GTK based application is built from the ground up to support i18n and localization with minimal amount of pain.
I've always heard that localization can be a real pain point to implement, so I am wondering if there is a good guideline and/or approach that can help make it...
Hi,
I'm building an interface using glade and gtk programming on c using netbeans. I've set up my project following http://zetcode.com/articles/netbeanscdevelopment/. I even added libgmodule2-0.so and libglib2-0.so to the linker options of netbeans. When I run i get the warning Gtk-WARNING Could not find signal handle. When I close the...
When I try to scroll down to the end of my TreeView, which is inside a ScrolledWindow, it doesn't scroll where it should but one or two lines before.
I tried several methods and they all provide the same behavior :
self.wTree.get_widget("tree_last_log").scroll_to_cell((self.number_results-1,))
# or
self.wTree.get_widget("tree_last_log...
Hi everyone, I'm trying to make a simple app with glade/gtk/vala. So far I have this:
using Gtk;
class HelloWorldApp : GLib.Object {
const string UI = "test.glade";
public Window main_window;
[CCode (instance_pos = -1)]
public void on_btn_hello_clicked(Button source) {
stdout.printf("Hello, world");
}
const...
Hi, I am just getting started using pycairo, and I ran into the following interesting error. The program I write creates a simple gtk window, draws a rectangle on it, and then has a callback to draw a random line on any kind of keyboard input. However, it seems that with each keyboard input, I have to create a new context, or I get an er...
What's the easieest way to create a sorted table view in gtk? I'm not sure if that's the right term, but you know the one:
Is there a built-in widget for this? If not, how would I go about making those columns that look slightly different, click to change sorting, etc. Note I don't need multi-column sorting at the moment.
...
I have a VBox which looks like this:
ImportantWidget
HSeparator
Label
I want this window to be only as wide as ImportantWidget needs to be, and no wider. However, the Label can sometimes grow to be very long. I want the following logic: if Label can fit all its text without expanding the VBox horizontally (after it has grown eno...
I have a GtkLabel and a GtkDrawingArea within a VBox, I want to center the label relative to a X-coordinate of the GtkDrawingArea (which is below of the label in the VBox), how can I tell GTK to center that label relative to that "anchor" point ? This point should be the center of the label.
...
I have a GTK widget, in this case, a TreeView. It starts off pretty small and compressed, as there's no text in it besides the columns names. As I add things, it grows horizontally to cover the text and vertically to cover the extra rows. If I then take those away, it retains its expanded size.
It's kind of annoying for your window to a...
From what I understand about GTK, if I have a TreeView, I can't just use any widget I want to display information about a column. For text, you need a gtk.CellRendererText. For toggle buttons, a gtk.CellRendererToggle. For anything else, it seems you have to implement yourself, which, from a sample one for buttons that I saw, doesn't loo...
I'm displaying some data as a TreeView. How can I detect a click on a particular tree-view cell, so that I know which column of which row was clicked on?
This is what I want to do, so maybe there's a better way: Part of the data is a series of True/False values indicating a particular set of options. For example, the options might be pi...
I have a treeview with a CellRendererCombo in a given column. I use the following code to set up the column:
crc = gtk.CellRendererCombo()
crc.set_property('model', comboModel)
crc.set_property('text-column', 0)
crc.set_property('editable', True)
crc.set_property('has_entry', False)
cl = gtk.TreeViewColumn(ctitle, crc, text=i)
def chan...
Hey I am trying to make a GTK IRC client that uses webkit to display its messages.
The webview is within a ScrolledWindow, and I want the scrolledwindow to scroll to the bottom everytime it gets too big.
I've tried changing the vadjustment value of the scrolledwindow when a message is added but this doesn't seem to work at all. It kee...