Re: [pygtk] Tweaking GTK InfoBar properties

2011-02-09 Thread Timo
On 09-02-11 05:14, Jason Heeris wrote: I have a GTK InfoBar that I'd like to show a fixed width message in, but I can't figure out how to get at the contained text display widget (get_content_area() just gives me an HBox, As far as I know, gtk.InfoBar is a subclass of gtk.HBox and has no other

[pygtk] persistence gtk.view with shelve module

2011-02-09 Thread Man Max
Hello I have some difficult to manage persistence of gtk.view object with shelve module. I use python 2.6.5 and PyGtk. MY FIRST TEST I implemented process with basic object like this #!/usr/bin/env python # -*- coding: iso-8859-1 -*- '''test de shelve ''' import gtk import gobject import

[pygtk] Debugging Verbosity?

2011-02-09 Thread Adam Tauno Williams
Are there flags, etc... I can provide in/to a PyGTK application to increase debugging messages? For example, when I start my app I see a message - main.py:27: Warning: unable to set property `text' of type `gchararray' from value of type `PyObject' gtk.main() Which isn't terribly helpful.

Re: [pygtk] ... and nothing appears

2011-02-09 Thread Adam Tauno Williams
On Thu, 2011-02-03 at 10:32 +1300, Tim Evans wrote: On 2011-02-03 10:29, Adam Tauno Williams wrote: I'm happily using PyGtk / Glade-3 and have pretty much recreated an app I've previously made in C# / Gtk#. But I have one frustrating bit. I need to fill a scrolled area with sections of

[pygtk] Glade, event handlers, gtk.Builder question

2011-02-09 Thread Adam Tauno Williams
builder = gtk.Builder() builder.add_from_file(self.gladefile) self.window = builder.get_object(MainWindow) This, according to my understanding creates an instance of the MainWindow widget as defined in the Glade file. Now if I want to connect the events defined in the Glade file to handlers of

Re: [pygtk] persistence gtk.view with shelve module

2011-02-09 Thread Adam Tauno Williams
On Wed, 2011-02-09 at 13:09 +0100, Man Max wrote: Hello MY FIRST TEST import shelve You import shelve TEST 2 with textView import shelve_whc as shelve You import shelve_whc. What is that? I cannot run your test. ___ pygtk mailing list

Re: [pygtk] persistence gtk.view with shelve module

2011-02-09 Thread Adam Tauno Williams
On Wed, 2011-02-09 at 08:38 -0500, Adam Tauno Williams wrote: On Wed, 2011-02-09 at 13:09 +0100, Man Max wrote: Hello MY FIRST TEST import shelve You import shelve TEST 2 with textView import shelve_whc as shelve You import shelve_whc. What is that? I cannot run your test. I

Re: [pygtk] Glade, event handlers, gtk.Builder question

2011-02-09 Thread Alessandro Dentella
On Wed, Feb 09, 2011 at 08:32:23AM -0500, Adam Tauno Williams wrote: builder = gtk.Builder() builder.add_from_file(self.gladefile) self.window = builder.get_object(MainWindow) This, according to my understanding creates an instance of the MainWindow widget as defined in the Glade file.