Re: [pygtk] Mapping GObject properties as python attributes

2005-06-20 Thread Gian Mario Tagliaretti
2005/6/20, Maciej Katafiasz <[EMAIL PROTECTED]>: > I'm all for "props" myself. Everyone already refers to them as props > anyway, so it wouldn't be any big change. I agree with Maciej, *props* is the best. cheers -- Gian Mario Tagliaretti PyGTK GUI programming http://www.parafernalia.org/pygtk/

Re: [pygtk] Mapping GObject properties as python attributes

2005-06-20 Thread Baiju M
> > Sure, that would work. but my personal opinion is that a shorter name > > than 'properties' would be nicer, like 'props', although not everyone > > agrees. > > I'm all for "props" myself. Everyone already refers to them as props > anyway, so it wouldn't be any big change. > If Python phil

Re: [pygtk] Where Can I find gtk.glade

2005-06-20 Thread Nikos Kouremenos
Hello, apt-get install python2.4-glade2 Have fun On 6/20/05, Don Rozenberg <[EMAIL PROTECTED]> wrote: > Hi, > > I tried sending this inquiry about 17 minutes after joining the group, > but it never made it. > > I am running on Knoppix 3.7 and have updated it recently. I have > installed 'Pytho

Re: [pygtk] Mapping GObject properties as python attributes

2005-06-20 Thread Maciej Katafiasz
Dnia 20-06-2005, pon o godzinie 19:05 +0100, Gustavo J. A. M. Carneiro napisaƂ: > > This seems much nicer to me. It would be especially nice if > > dir(gtk.Label().properties) > > would get me a list of all settable properties for an object. > > Sure, that would work. but my personal opinion i

Re: [pygtk] Mapping GObject properties as python attributes

2005-06-20 Thread Gustavo J. A. M. Carneiro
On Mon, 2005-06-20 at 13:50 -0400, Thomas Mills Hinkle wrote: > > > 1. Map GObject property names to python attributes with a > > > predefined > > >prefix reserved for properties. Examples: label.prop_text, > > >label.proptext, etc.. (others?) > > This seems icky to me. > > > > > > >

Re: [pygtk] Mapping GObject properties as python attributes

2005-06-20 Thread Thomas Mills Hinkle
> > 1. Map GObject property names to python attributes with a predefined > >prefix reserved for properties. Examples: label.prop_text, > >label.proptext, etc.. (others?) This seems icky to me. > > > > 2. Create a properties container object. Examples label.prop.text, > >label.props

Re: [pygtk] Mapping GObject properties as python attributes

2005-06-20 Thread Rafael Villar Burke
Gustavo J. A. M. Carneiro wrote: We have currently two alternative solutions in mind, to workaround this issue: 1. Map GObject property names to python attributes with a predefined prefix reserved for properties. Examples: label.prop_text, label.proptext, etc.. (others?) 2.

[pygtk] Where Can I find gtk.glade

2005-06-20 Thread Don Rozenberg
Hi, I tried sending this inquiry about 17 minutes after joining the group, but it never made it. I am running on Knoppix 3.7 and have updated it recently. I have installed 'Python 2.4.1', 'libglade-2.0.1' and 'pygtk-2.4.1' in that order all from source. I can run some examples in the exampl

[pygtk] Mapping GObject properties as python attributes

2005-06-20 Thread Gustavo J. A. M. Carneiro
I'm sure many people have been wondering over the years why we have to do this: label.set_property("text", "hello") instead of this: label.text = "hello" Clearly the current way of getting and setting GObject properties is suboptimal. The PyGTK developers would like to fix th

Re: [pygtk] PyObject_Call SystemError; What does this error mean?

2005-06-20 Thread Dennis Craven
On Fri, 2005-17-06 at 13:18 +0100, Gustavo J. A. M. Carneiro wrote: > On Fri, 2005-06-17 at 07:22 -0400, Dennis Craven wrote: > > I've written a small app that takes advantage of the gtkspell module of > > gnome-python-extras (2.11.0). I released the first version with > > spell-checking capabiliti

[pygtk] Toolbar Styles Read-Only?

2005-06-20 Thread Dennis Craven
Hello, I have some toolbars that I'd like to change the appearance of. I'd like to make the shadow-type gtk.SHADOW_NONE and the button-relief gtk.RELIEF_NORMAL. I don't see a way to accomplish this though.. The properties are there, but they are read-only according to the docs. Is there a way to

Re: [pygtk] How I can quit main loop by pressing key(Esc).

2005-06-20 Thread Baiju M
If self.topMain is your main window: accelgroup = gtk.AccelGroup() key, modifier = gtk.accelerator_parse('Escape') accelgroup.connect_group(key, modifier, gtk.ACCEL_VISIBLE,

[pygtk] How I can quit main loop by pressing key(Esc).

2005-06-20 Thread Mahmad Sadique Hannure
Hi to all, I am using a window which is fullscreen and I want to quit when user press a key Esc.How can I achive this. Help me. Thank You. regards, Mohmad Sadique __ Discover Yahoo! Use Yahoo! to plan a weekend, have fun online and more. Check