On Sat, 29 Jul 2000, Martin Preishuber wrote:
> Greetings,
>
> since I found some time to work on my eroaster today, I also found some
> things about the gnome-python-bindings I don't really understand, too:
>
> - There are some conditions, where windows are not complettly drawn,
> e.g.
>
> <openwindow,printlabels&stuff>
> while events_pending():
> mainiteration()
> system("sleep 5")
>
> even though the while-loop should make sure, everything should be on
> the
> screen, in my case only the window frame is printed
why would you want to run the sleep command? None of your app windows
would be able to receive events (and hence, not redraw themselves when
exposed).
>
> - when setting a button inactive with
> button.set_state(STATE_INSENSITIVE)
> I can't reactivate it any more (none of the other states worked)
use button.set_sensitive(FALSE), and use set_sensitive(TRUE) to re enable
it.
>
> - when creating a right justified label, e.g.
>
> channel = GtkLabel("Channel: ")
> channel.set_justify(JUSTIFY_RIGHT)
> channel.show()
the set_justify() method sets the justification of the lines in a multi
line label with respect to each other. Instead, use the
set_alignment() method:
channel.set_alignment(0.0, 0.5)
>
> and then attach it to a table column it will always be centered.
Make sure you set the FILL option in the x direction, or the label won't
expand to fill the column.
>
> Thanks for any comments and help !
>
> Martin
>
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk