[pygtk] How to let the WM know !?

2000-05-15 Thread abouf066

Hi all,

Thanks for your precious help. Unfortunately, my problems are not 
over yet !?

I am creating a dialog window, which might be moved around and resized by
the user. In theory this means that  the user has her/his own reasons in
doing so. 

Here is my problem : 

-1- I popup the window to select my options. Resize my window and
moving it to a "good" location.

-2- I hide my window

-3- I bring it back 

Step -3- is problematic. When my window is "brought back to life"
(with a show), it comes back with the "default" settings ( initial size
and location) as if it were the first time it shows up !!


My guess, the WM should be able to take care of  this problem, but HOW!?!?

Thanks for your time and help.


 _

LaBoufarikoise


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



Re: [pygtk] Event handler

2000-05-15 Thread James Henstridge

On Mon, 15 May 2000, Luca Minuti wrote:

 I havn't found a "double click" signal to use with the connect method.
 If true, how can I handle a double click over an item of a GtkCList?
 
 I have another problem, I need a subclass of GtkCList that fire a
 custom signal under certain condition, but I don't know how to create
 new signal.

You want button_press_event, and check to see if the event's type is
GDK._2BUTTON_PRESS.  Here is the code:
  def button_press_handler(widget, event):
if event.type == GDK._2BUTTON_PRESS:
handle_double_click()
return TRUE

 
 Thanks,
   Luca.
 

James.

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


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



No Subject

2000-05-15 Thread abouf066

Hi James,

A small question for you. How can I put aguments for the callback
function appearing in create_items ( defined in GtkItemFactory.)



Thanks for your time and help
_

LaBoufarikoise


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



[pygtk] Event handler

2000-05-15 Thread Luca Minuti

I havn't found a "double click" signal to use with the connect method.
If true, how can I handle a double click over an item of a GtkCList?

I have another problem, I need a subclass of GtkCList that fire a
custom signal under certain condition, but I don't know how to create
new signal.

Thanks,
  Luca.

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