glade

Command not defined in Python - Real basics, but confused!

Hi, I have written this short script (which I've stripped away some minor detail for size) and I'm getting a very simple error, yet, I don't understand why! I'm very new to Python, so maybe someone can explain the issue and why it's not working? The error seems to fall when I wish to print the full custom serial write string back to t...

insert a bash like widget into gtk

Hi, When you write a program in c which has a lot of printf for a lot purpose: debuggin, information, etc. I would like to do something like that in gtk, having some widget that would display all the printf messages I usually would do in a normal c program Thanks, ---UPDATE--- I'm using vte as ptomato advised. Although some problems ...

GTK / PyGTK make ComboBox searchable with keyboard

Is it possible to make a ComboBox searchable ? If yes, how ? I want to be able, when the ComboBox is active and a letter is typed with the keyboard, to select the first item beginning with this letter inside the ComboBox and so on with the next letters. The is the same functionality of a ComboBox inside a webpage, for example. I can't...

PyGTK Update Sibling Widget Label

Just getting started with PyGTK and Glade3 and would love some help. Container Hierarchy: window -> vbox1 -> {button1 , label1} button1 calls back to on_button1_clicked(self, widget): print "Hello World!" #This sends the output to the console widget.set_label("Hello World!") #T...

Gtk-WARNING Could not find signal handler on netbeans

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...

How to use gtk/glade in vala

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...

monodevelop insists on using a reference that doesn't work

I am using MonoDevelop 2.2 from the Debian testing repository. I have installed the addins for GTK support, for version 2.8 and 2.10. When I compile my solution, I get warnings saying Warning: Assembly 'glade-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' not found. Make sure that the assembly exists in disk....

How do you draw a grid and rectangles in Python?

What Python-related code (PyGTK, Glade, Tkinter, PyQT, wxPython, Cairo, ...) could you easily use to create a GUI to do some or all of the following? Part of the GUI has an immovable square grid. The user can press a button to create a resizable rectangle. The user can drag the rectangle anywhere on the grid, and it will snap to the gr...

Localization of GUI built with Glade and Python (Gtk)

Hi, I have made an application using Glade and Python and I would like to make several localizations. I know how to localize strings that are in the Python code, I just encapsule all the strings that are supposed to be localized with _() and than specify the translation of the string in a .po file. But how do I tell a string that is bu...

Getting started with Mono, C# and Glade#: How to make window appear?

I've been trying to get started with Mono & GTK# (I come from a background of Qt/C++ GUI programming) and decided to start with a very simple test GUI. I installed the MS Windows Mono/GTK# installer and then, upon finding that the Start menu link to Glade didn't work (as it didn't appear to be included in the package), I used the "Glade...

How to import function handlers from other file to a Python/GTK Builder program?

I have a Python script which uses a glade file to define its UI, and has a lot of repetitive widgets, each one to adjust a different numerical attribute of a certain active object. Since it is repetitive, I decided to define all the handlers in a separate file for encapsulation and readability. Here are some code excerpts: The main file...

Simple ListBox w/ PyGTK Issues

Environment: PyGTK Glade Problem: After following several tutorials detailing how to get a ListBox up and running using the GtkTreeView widget alongside a gtk.ListStore object I still can't seem to get my data from the ListStore to show up in the GtkTreeView. Request: Anyone have a link to a thorough tutorial I can follow or willin...

Why is the notebook control not showing up in my window?

Although I am not new to Python, this is my first attempt at using Glade to design the interface. My Python file looks like this: import gobject import gtk import gtk.glade class prefs_dialog: def __init__ (self): # Initialize the dialog self.window = gtk.glade.XML("file.glade").get_widget("prefs_dialog") ...

python glade: window doesn't appear

I initially had a GladeXML object error. But I solved it after reading this post --> http://stackoverflow.com/questions/2668618/python-glade-could-not-create-gladexml-object I've tried both the solutions mentioned there. However the window still doesn't appear. ...

automatically converting xml format from LibGlade to GtkBuilder

I've found 2 ways of converting from an old GTK+ UI xml format (using LibGlade) to the new format (using the built-in GtkBuilder). One is using Save As using Glade Interface Builder, and another is using gtk-builder-convert. They give different outputs, so I would like to know which one to trust more. ...

Passing user data with glade/gtkbuilder

Hi all, I am a newbie of glade/pygtk. I am doing with some radio menu items. I created a signal handler on the signals tab, handler: on_group_menu_change user data: 7 what I expected is pass the int(or str) value 7 as user param to the handler. However, at startup, I found such warning: Could not lookup object 0 on signal gro...

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...