[pygtk] Re: custom popup dialog

Michael Baranov michael.baranov at gmail.com
Mon Oct 15 02:46:57 WST 2007


Hi!
Thanks for the response!

But the snippet was just an example to illustrate the problem. I can lay =

it out the way that widget's allocation matches the actual widget area =

on the screen.

But what I'm interested in is to know the actual widget area does it =

match it's allocation or not... gtk.Entry won't stretch itself =

vertically in my example and I can't get it's size and position...

Alec Hussey wrote:
> On Sat, 2007-10-13 at 22:24 +0300, Michael Baranov wrote:
>   =

>
> Why dont you simply make a new gtk.Dialog and pack your Entry's into its
> vbox. For example:
>
> dialog =3D gtk.Dialog(None, None, gtk.DIALOG_MODAL)
> dialog.set_title("GTK Entry")
>
> entry1 =3D gtk.Entry()
> entry2 =3D gtk.Entry()
>
> entry1.connect("focus-in-event", on_focus_in)
> entry2.connect("focus-in-event", on_focus_in)
>
> dialog.vbox.pack_start(entry1)
> dialog.vbox.pack_start(entry2)
>
> dialog.run()
> dialog.destroy()
>
> --
> Alec Hussey
>
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
>
>   =


-- =

Michael Baranov

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20071014/123f1223/at=
tachment.htm


More information about the pygtk mailing list