gtk

Writing my first gtk program, what's the best way to use glade?

I've been reading tutorials, but one thing I'm not seeing is this: If you're writing a complex application where new windows pop up as a result of button clicks on a main window, should each top level window be a separate glade file, or is there a way to keep all the interface design in one glade file? If so, how do you do that? The glad...

Does pygtk support absolute positioning?

I just want to put an Image on a screen given the X and Y. ...

How to set a Gtk Box to have two children

I have a Gtk::HBox which should contain two elements only. However, the constructor new Gtk::HBox() creates a box with three elements, so when I display my window, there is an ugly space where Gtk expects me to put a third element. I thought the Gtk api would provide an easy way to set the number of children, but it doesn't. Since Glade...

adding image to project

hi, How can I add an image to a project in gtk framework created using Anjuta. Thanks in advance, iSight ...

How to iterate over two lists - python

Hey guys. I'm trying to do something in pyGTk where I build a list of HBoxes: self.keyvalueboxes = [] for keyval in range(1,self.keyvaluelen): self.keyvalueboxes.append(gtk.HBox(False, 5)) But I then want to run over the list and assign A text entry & a label into each one both of which are stored in a list. I'm sorry I'm not bei...

How can I get title & scripts inside a webpage using webkit + gtk ?

Hello Guys ! Here 's my code snippet import gtk, webkit window = gtk.Window() browser = webkit.WebView() url = "www.google.com" browser.open(url) Now I wanna get the web page title, script tags inside. So how can I do that ? The documentation is not clear at these points and I only found documentation for Objective-C and I am tryin...

Possible to port gui functions with swig

I was wondering if it would be possible to port the gtk gui framework to go(the language) with the swig wrapper? Or am I just living in a fantasy world? ...

adding libxml library to project in Anjutha

Hi, How can i add libxml library in a project created with Anjutha. ...

GTK window hints

I'm trying to get a window to cover the whole screen. Its positioning and dimensions is fine but it gets covered by the Gnome panel. To complicate things I have two monitors and this app needs to support people with multiple screens. WINDOW_TYPE_HINT_SPLASHSCREEN is a good start. It covers both screens but not the panel. It's still ther...

Your best library for create GUI ( gtk, qt, win32 api, etc ) ?

In your opinion, what is the best way to create gui in Windows ? with gtk or win32 api ? Do you recommend GTK for windows ? Yes ? NO ? Why ? ...

embedding python ImportError: libpyglib PyExc_ImportError linking

I am running 64 bit ubuntu 10.10 in case there are know issues with this setup, basically i am embedding python inside a c application i managed to get this to work i can call functions from the original c program and the scripts run until i import gtk in the python script this causes the error below. I am using the waf build system to ...

Simple update mechanism for C/GTK app on Windows

Hi, I am developping a C/GTK application. I will soon be releasing a new version, and I thought it would be useful to include some update mechanism to it so that the application will be able to update itself. I really only need something simple; it is sufficient if it only worked on Windows, since on Linux the application is in the rep...

GTK+ how to taskbar, make window "solid"

Hello! I'd like to write a dock-like application. How can I make my bar "solid"; so that maximised windows neither are below or above my window, but the bar confines all other windows? (ergo: permanently takes up space on the screen) ...

PyGtk - Activating a combo box

If I have a combo box in pyGTK and would like to set a list of strings and then on clicking on one activate a command how would I do it? At the moment I have: self.combo_key = gtk.Combo() self.combo_key.set_popdown_strings(self.keys) self.combo_key.entry.set_text(db.keys()[0]) self.combo_key.entry.connect("activate", se...