Hi, I want add a list in my C program...I know how build a list with GTK+, add string at opened program, etc...but it's different when you want "maintain" the content of list. I thought to save the content in a .txt file (I've two column, 1st contains a string type and 2nd contains int type), but when I open the program, how can I import...
Hi,
I was using some gnome applications like empathy and gwibber, and was wondering how to create a "conversation" effect in my own gtk application.
E.g. http://www.ubuntu.com.cn/files/1004features/01.jpg (off google, not my site)
Thanks
...
Hi, I have to create a simple application that displays an icon in the systray and a menu from which you can do some operations.
the problem is that statusicon is closed immediately after creation. What's missing?
I put the sleep to make sure it was created. for 3 seconds something appears in systray, even if it is not the icon that I se...
I'm having performance problems when inserting many rows into a GTK treeview (using PyGTK) - or when modifying many rows. The problem is that the model seems to get resorted after each change (insert/modification). This causes the GUI to hang for multiple seconds. Leaving the model unsorted by commenting out model.set_sort_column_id(SOME...
I decided to play with GtkSourceView for a while and I started with
this as base code.
I noticed that after an auto-complete window pops up, it doesn't filter or even select proposals that match what I've written since it popped up. I tried implementing gtk_source_completion_provider_get_start_iter() because I thought that if it knows ...
Hi, I have a TreeView and when I click in it, i receive the error:
Traceback (most recent call last):
File "pyparty.py", line 76, in get_selected_user
self.selected_user = tree_model.get_value(tree_iter, 0)
TypeError: iter must be a GtkTreeIter
It just happen for the first click. After that it works fine. I don't know what's wro...
I'm using twisted with GTK, and the following code runs when a connection could not be established:
def connectionFailed(self, reason):
#show a "connect failed" dialog
dlg = gtk.MessageDialog(
type=gtk.MESSAGE_ERROR,
buttons=gtk.BUTTONS_CLOSE,
message_format="Could not connect to server:\n%s" % (
...
I have a global set of values, e.g. ["Foo", "Bar", "Baz", "Quux"]. Each row in my TreeView represents an entity that can only deal with a subset of these values. For example, the first row might deal with "Foo" and "Bar", and the second, "Bar" and "Quux". I want a ComboBox column to allow each row to select one of the values it can deal ...
How do I really disable gtk treeview interactive search? The docs say to set_enable_search(False), but if I do this, CTRL+F still causes an annoying search pop-up to appear. Connecting to start-interactive-search and returning True doesn't work either.
...
Hi, I would like to implement a button "New" that would work the same as File>New in most applications - that is: resets all the labels, treeviews, etc. to the original state.
Thank you, Tomas
...
Problem: Widget 'A' is a toplevel window that is displayed after a button click in MainWindow 'B'. How do I assign a handler to handle the signal sent back after the 'X' along the window border of Widget 'A' is clicked (see below for current implementation)?
def on_mainWindow_B_button_clicked(self, widget):
self.widget_a.show()
de...
I am creating a GTK Window which, for various reasons, I wish to make non-resizable by the user. But invoking the set_resizable method on the window causes it to display with a size of 1 pixel by 1 pixel. (jn the code below, the window displays the expected size if the set-resizable line is commented out. It makes no difference which ord...
With PyGTK running on Windows, I want to have a new window pop up near a parent window, but never off-screen.
I observed the behavior I want in Microsoft Wordpad in both Windows 7 and Windows XP. If you make the window very small and move it to the bottom right of the desktop, right click in the text field, and open the Paragraph menu,...
I'm writing an app in Java in Eclipse where I need to get the absolute path to an image I'm using. I decided to use getClass().getResource().getPath(), and it works great when I'm running the app from Eclipse.
When I export the app to a JAR file, however, the image doesn't appear. I put in a print statement to find out what was coming...
Hi,
I'm developing a GTK app, and would like to print some messages over existing widgets rather than displaying them in the status bar, kind of like the way Mendeley does it when no document is selected:
(as opposed to what is displayed in the right pane when you select a document:)
Should I dynamically create a panel, label, ......
Hi everybody.
I am working on a gtk+ application written in python. I obviously use pygtk. My application is about collections of videos. It's a kind of F-spo or picasa, but for video.
As you can see in these two apps, you have a central area where you can see all of your photos with tag thumbnails under.
In my app, I want to implemen...
I am drawing a little graphical display that is expensive to calculate. So I wish to draw the picture into a pixmap, retaining the pixmap and using that pixmap to refresh the drawing area when the drawing area gets expose events.
First of all, is that a reasonable procedure or pointless over-engineering?
If it is reasonable, then I nee...
I'm trying to write a simple GTD-style todo list app with python and gtk to learn python. I want a container that can select an individual list from a lot of choices. It would be something like the list of notebooks area in tomboy. Not a combobox.
As you can probably tell I'm a beginner and the terminology is probably off.
Can you p...
how to do, that just a part of GtkLabel has a clicked event and calls a function.
i make a twitter client, witch shows tweets and i would like to, when in the tweet is a # hashtag and i click it, the application shows a new window with search of this #hashtag. and i dont know how to do that just the #hashtag would invoke this event.
so...
I'm starting to make my first C program in awhile using GTK+. I've learned C to some extent and I've worked with PyGTK, so I have a decent understanding of both. But, I've never created GUI program with C. Though it worked, my last GUI program was a bit of a mess because the program logic was all mixed in with the GUI stuff. I've read t...