[pygtk] Is it possible to get "un-resize a window"

2000-05-11 Thread abouf066

Hi all,

Here is my new problem :

I create a window and I allow the user to resize it. Is there a
way to get back the old original size (using some kind of signal or
something else). 

Thanks for your time and help

_

LaBoufarikoise


-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]



Re: [pygtk] Which event correspond to window resize !?

2000-05-11 Thread James Henstridge

On Thu, 11 May 2000, Fred L. Drake, Jr. wrote:

> 
> James Henstridge writes:
>  > Connect to the size_allocate signal on the window.  You may have to use
>  > connect_after so that your handler is called after the GtkWindow has run
> 
>   Is this better than using the configure_event (that's what I used in
> piddleGTK)?

Depends.  You can connect to the size_allocate signal of any widget, even
those without their own window, so I guess it is more general.  I don't
know what times size_allocate is called when configure_event isn't or vice
versa.  Partly it is just personal style.

> 
>   -Fred
> 

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]



Re: [pygtk] Which event correspond to window resize !?

2000-05-11 Thread Fred L. Drake, Jr.


James Henstridge writes:
 > Connect to the size_allocate signal on the window.  You may have to use
 > connect_after so that your handler is called after the GtkWindow has run

  Is this better than using the configure_event (that's what I used in
piddleGTK)?


  -Fred

--
Fred L. Drake, Jr.
Corporation for National Research Initiatives

-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]



Re: [pygtk] Which event correspond to window resize !?

2000-05-11 Thread James Henstridge

On Wed, 10 May 2000 [EMAIL PROTECTED] wrote:

> 
> Hi,
> 
>   Can anybody tell me which event occurs when a window is being
> resized ? (I tried "rsize_event" but with no success")

Connect to the size_allocate signal on the window.  You may have to use
connect_after so that your handler is called after the GtkWindow has run
its resize handling code.

> 
> 
> Thnaks all
> 
> _
>   
>   LaBoufarikoise

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]