[maemo-developers] New project idea, pygtk questions, and a toolkit
From: Xan Lopez xan.lopez at gmail.comDate: Mon Feb 19 22:07:10 EET 2007
- Previous message: New project idea, pygtk questions, and a toolkit
- Next message: New project idea, pygtk questions, and a toolkit
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2/19/07, Sean Luke <sean at cs.gmu.edu> wrote: > Thanks, and I do appreciate your response. Further replies: > You're welcome :) > On Feb 19, 2007, at 1:17 PM, Xan Lopez wrote: > > > On 2/19/07, Sean Luke <sean at cs.gmu.edu> wrote: > >> - Why is there any distinction between events and signals? > > > > http://www.gtk.org/faq/#AEN556 > > So... from what I gather here, the ONLY relevant difference is that > they come from different sources? Since that's largely immaterial, > what would possess the GTK designers to require developers to > distinguish between them? Argh. > Well, I think the idea is that GTK+ passes the events coming from X to the GtkWidgets as signals so you as a developer don't have to think too hard about their differences. Maybe it could have been done in a different, cleaner way? Could be, I don't consider myself skilled enough to have a relevant opinion on this :) > > >> - There appears to be no hook for gtk.Paned to detect when the user > >> is moving / has moved the divider bar. This would seem to me to be > >> the single most important hook. The only option I've found online is > >> to override the size change hook Am I missing something? > >> > > > > The widget has a "position" property. You could ask to be notified > > when that value changes? > > How is this done? By subclassing and overriding the attribute? Or > is there a mechanism to tie into notifications? Something like g_signal_connect (paned, "notify::position", your_callback, your_data) will do the trick. That's a shotcut for connecting to "notify" and checking in the callback if the name of the property changed is "position". > > >> - How do I move the text in a gtk.Frame vertically? It's set too > >> close to the frame and descenders (g,q,p,y,j) collide with the frame > >> border in an ugly fashion. > > > > If you want to control the vertical position of the GtkFrame title > > with respect to the frame you want to use the label-yalign property. > > I recall seeing somewhere (perhaps in the tutorial) that label-yalign > is broken. :-( And it seemed to do nothing when I tried it. It works here, what problems are you getting? > > Sean > > >
- Previous message: New project idea, pygtk questions, and a toolkit
- Next message: New project idea, pygtk questions, and a toolkit
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]