glade

How to use/fill a combo box with Ruby/Glade 3

Hey guys, I am trying to make a gui with Glade 3 (gtk) and ruby but cannot figure out how to actually populate a combo box dynamically with say a list of strings. I get the xml .glade file after i visually make my gui in Glade, and use ruby-glade-create-template to generate my .rb file but have no idea where to go from here. I cannot fi...

How to make a Multiple-Select List Box in Ruby Glade/GTK, maybe using TreeView?

Hey guys, I am trying to make a multiple-select listbox in glade/ruby program and I am wondering how I go about doing this, like what element I add to the window and the corresponding example code I can use. I was looking at GTKList but it says it is deprecated now, and also I don't know how to get it working in ruby. GTK List docs say ...

How to add GtkMozEmbed browser into a tab with Ruby/Glade/GtK?

Hey guys, I am trying to add a browser using GtkMozEmbed into a gui I am designing using Glade. I want the browser to take up a tab in a notebook widget, but I cannot figure out how to actually do this. I am wondering what container to use to put the browser in, and the associated ruby code to actually embed the browser in this contain...

Using Multiple Glade Files : GtkBuiler

I'm writing an app for gnome which will support plugins. Each plugin will contain a glade file and a python script. How do I embed the glade file from the plugin in the main interface. Plugin glade files should contain a page/tab and will be embeded into a notebook in the main interface. please help. ...

Modifying a GUI started with Glade

I am just starting to learn Glade with pyGTK. Since Glade makes XML files instead of actual python code, is there a good way to start a project with Glade and then hand code more or tweak it? Are there times or reasons it would be preferrable to hand code all of it instead of starting with glade? ...

how can i create this item in pygtk using glade?

Please take a look at this picture: http://www.uzbozor.com/uploads/Screenshot.png I want to create a list container as shown in that picture. How do i do it in pygtk using glade? What is that item called? Thanks ...

How do I connect glade signals using GtkBuilder in C#?

In python, I could just do builder.connect_signals(self). It doesn't seem like this method exists in C#, and after looking at the GtkBuilder documentation, it looks like python is the exception, rather than the rule. How would I accomplish the same thing in C#? ...

Can you set the DefaultResponse for a Gtk Dialog in Glade?

In my code, I have lines like this: Builder builder = new Builder(); builder.AddFromFile(gladefile); FileChooserDialog dialog = (FileChooserDialog) builder.GetObject("dialog"); dialog.DefaultResponse = ResponseType.Ok; Is there a way to set the default response in the glade file, rather than doing it manually? ...

Can you set the FileFilters for a Gtk Dialog in Glade?

In my code, I have lines like this: Builder builder = new Builder(); builder.AddFromFile(gladefile); FileChooserDialog dialog = (FileChooserDialog) builder.GetObject("dialog"); FileFilter[] filters = new FileFilter[2]; filters[0] = new FileFilter(); filters[0].Name = "Some filter"; filters[0].AddPattern("*.someextension"); filters[...

How to disable/inactive some of the GtkMenu Items.

I am trying to disable/inactive some of menu items under GTK+... I have created Menu In GTK+Glade under C. and on some external event i need to disable some of the menu options... hot to do this? ...

Glade editor not showing icons in palette

I've just installed the GTK+ Glade 3.6.7 designer on Windows XP and there are no icons in the palette. I can select small icons or large icons from the view menu but neither will show. I just get red X images. The toolbar icons do show. ...

Multiple Thread Progress Bar Control with gtk

in my C program , download some files from the internet, im using a GTK progress bar to show the download progress. i wanna if i download one file ,my app show one progress bar if i download three files ,my app can show three progress bar. the rest can be done in the same manner. i create UI with glade3. GtkTreeView have 3 colum...

OpenGL + gtkglextmm + glade

Hello, when I am programming with "gtkmm", there is a widget "Gtk::DrawingArea". I can program that widget "by hand" (so write the code) or more elegant way is to use "glade" user interface designer, where I can do the same "graphically". Now I am trying to connect OpenGL with gtkmm through "gtkglextmm" library. In that library, there i...

Python GUI (glade) to display output of shell process

I'm writing a python application that runs several subprocesses using subprocess.Popen objects. I have a glade GUI and want to display the output of these commands (running in subprocess.Popen) in the gui in real time. Can anyone suggest a way to do this? What glade object do I need to use and how to redirect the output? ...

howto scroll a gtk.scrolledwindow object from python code

I'm writing a python application that has a glade gui. Using subprocess to execute some shell commands in the background. Using a glade GUI which has a scrolledwindow widget and a textview widget inside the scrolledwindow widget. The textview gets populated as the subprocess.Popen object run and display their stdout and stderr to this t...

how to distribute python app with glade GUI?

I'm trying to distribute this app that I wrote in python. The application consists of 2 python scripts. 2 .glade files and 1 .png file. Here is my dir structure on this project vasm/ vasmcc.py src/ vasm.py gui/ vasm.glade vasmset.glade logo.png vasmcc is just the python script for the gui... th...

In Gtk, when is it better to use Glade/GtkBuilder than native code?

Glade helped me get started on a project quickly, but I've found it harder to maintain in the long run, and I'm thinking about switching it all to native code. In what circumstances would you choose glade, and when would you use native code? ...

Is there something similar to WPF DataTemplates in GTK/Glade?

I am coding a pyGTK application, and I'd like to change an input based on the user's selection from a ComboBox. For example, a user could select truck/car/van, and the input parameters would change corresponding to the type of vehicle. Is there a way one can define the different sub-panels using Glade? It would be easy to just define a ...

Window management with pygtk

I'm having an issue with PyGTK and GTK Builder windows. Here's a simplified version of my code. class GUI: def __init__(self,parent): builder_file = "./ui/window.builder" self.builder = gtk.Builder() self.builder.add_from_file(builder_file) self.window = self.builder.get_object('main') self.builder.connect_signals( ...

gtk layout techniques with glade

I am absolutely terrible at GUIs - can you SO gurus point me to good tutorial material on layout management tips & tricks with Glade for GTK+ ? (The first google hits on "glade tutorials" do not count) ...