gtk

Which GTK widget combination?

I'm working with PyGTK, trying to come up with a combination of widgets that will do the following: Let me add an endless number of widgets in a column Provide a vertical scrollbar to get to the ones that run off the bottom Make the widgets' width adjust to fill available horizontal space when the window is resized Thanks - I'm new t...

How up to date is OpenStep as a development Environment?

Long time ago, the Game Developer magazine published an article about ID Software and their DOOM game. In the article ID states that they used a NeXT Step machine for development with GNU GCC cross compiler. Quoting: By writing in ANSI C on NeXTStep, Id Software is able to develop and test in a true programmer’s environment. Th...

Is there any Glade3 installer for Windows?

I downloaded file: http://downloads.sourceforge.net/gladewin32/glade-3.4.3-win32-1.zip and when I extract it an run glade-3.exe from /bin folder, I get "no libxml2.dll" error. Now, I want to find installer (like GTK+ bundle for GTK+) that would install glade3 and all it's dependencies for Windows XP. ...

Progress bar not updating during operation

in my python program to upload a file to the internet, im using a GTK progress bar to show the upload progress. But the problems that im facing is that the progress bar does not show any activity until the upload is complete, and then it abruptly indicates upload complete. im using pycurl to make the http requests...my question is - do...

GTK: Resizing widgets contained in a textview

I have a Gtk.TextView control, and I'm inserting child widgets into it. I'd like to be able to have the children resize to fit the width of the TextView when the form is resized. Is there a built-in way to do this? If not, can anyone suggest a good way of writing my own? ...

Finding the workspace size (screen size less the taskbar) using GTK

How do you create a main window that fills the entire desktop without covering (or being covered by) the task bar and without being maximized? I can find the entire screen size with and set the main window accordingly with this: window = gtk.Window() screen = window.get_screen() window.resize(screen.get_width(), screen.get_height()) b...

Column-Size on GTK TreeViews

How can I set the horizontal size of a specific column on a GTK-TreeView? I have 4 columns on my TreeView and the last one expands on the rest of the free space. How can I set the first or second column to be expanded on the free space os set a fixed width on all columns? ...

Extra button on title bar for Swing GTK L&F

Hi, Anyone know of anyway to add an extra button next to the general maximize, minimize, restore, and close button on the title bar in Swing GTK L&F? Thanks much. ...

Disable pixmap background defined by GTK theme per application

For our (open source) fullscreen text editor we're changing background colors of gtk.Window, gtk.Fixed, etc. to custom colors. This works fine, but some GTK themes (e.g. Mac4Lin) define background pixmaps instead of background colors for some widgets. Those background pixmaps won't go away when calling modify_bg() methods of those widget...

Printing window with GtkTreeView in C?

I have some reports in my application that are represented as window with GtkTreeView widget reading data from GtkListStore model. These reports are much like Excel tables with usual stuff: column names, some header and footer text, maybe small image, ... What should I use/read/learn to be able to print this, having in mind that I am a ...

Using FileChooserButton in GTK+

I'm trying hard to find out how to use the file chooser button properly. Reading the reference manual on GtkFileChooserButton, GtkFileChooserDialog and GtkFileChooser didn't help so far. I've tried connecting to the undocumented signal file-set of GtkFileChooserButton and calling get_filename() from here, but it seems to behave quite unr...

Packaging an application with dependencies under Windows

I've written an application using gtkmm and libpcap under Linux. Of course, gtkmm depends on GTK+. After porting it to Windows and attempting to distribute it, the feedback I received is that there are too many dependencies to install. The user has to run installers for the GTK+, gtkmm, and winpcap runtimes before they can run my littl...

What's a good embedded browser for a pygtk application?

I'm planning on using an embedded browser in my pygtk application and I'm debating between gtkmozembed and pywebkitgtk. Is there any compelling difference between the two? Are there any third options that I don't know about? It should be noted that I won't be using this to access content on the web. I'm mainly using it for UI purpose...

Smooth animations using GTK+

I'm creating a network animator (similar to nam, if you have used it before). Basically, I have nodes represented as small dots on a GTK+ DrawingArea, and I update the positions of these nodes and redraw the DrawingArea in a loop. The resulting animation is fast, but not smooth (there's a lot of flicker). This is probably because I fil...

gtk TextView widget doesn't update during function

I'm new to GUI programming with python and gtk, so this is a bit of a beginners question. I have a function that is called when a button is pressed which does various tasks, and a TextView widget which I write to after each task is completed. The problem is that the TextView widget doesn't update until the entire function has finished. ...

glade aboutDialog doesn't close

I have an AboutDialog box made in glade, but the Close button doesn't work. I don't know how to connect this button to a separate function, since it sits in a widget called dialog-action_area. Another problem is if I use the close button created by the window manager, I can't open it again because it has been destroyed. How can I cha...

PyGTK widget opacity

Is there any way to set a widget's opacity in PyGTK? I know there's a function for windows: gtk.Window.set_opacity(0.85) but there seems to be no equivalent for arbitrary widgets. Anyone have any ideas? Thanks in advance for your help. ...

Simple open source paint program

I am trying to experiment with expanding paint-like program adding custom features to it. Can you suggest a simple open source paint-like program written in C and using GTK+ library which I could expand? It should compile in Linux but also in Windows (using MinGW). Thanks. EDIT: I found this and it looks like something I was looking fo...

Stacking GTK+ widgets

Is there a way to put GTK+ widgets in a stack? I.e. put a button over label so that button covers a part of label. ...

How to install Glade in Mac OSX Leopard

How can I install Glade in Mac OSX Leopard? I haven't found any guide that really helped me. Thanks! ...