Re: [pygtk] Panel applet taking button2

1999-11-02 Thread James Henstridge
The deskguide applet has a special action for the middle button. Maybe you could look at that code. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On 3 Nov 1999, Hrvoje Niksic wrote: > [ Please note that button2 is the *middle* button, not the right mouse > button.

Re: [pygtk] Panel applet taking button2

1999-11-02 Thread Hrvoje Niksic
[ Please note that button2 is the *middle* button, not the right mouse button. Your question seems to imply that you think I want to change the behaviour of right-click, which I don't. ] Edward Muller <[EMAIL PROTECTED]> writes: > 1) What do you want to do on the button 2 click? I'm writin

Re: [pygtk] suggestion for MenuFactory

1999-11-02 Thread Torsten Landschoff
On Tue, Nov 02, 1999 at 09:33:36AM -0500, Rick Ree wrote: > Adding the following to GtkExtra.py allows tearoff menu items to be added > in the same way that separators are. >=20 > BTW, how does one 'gray out' or disable a menu item? menuitem.set_sensitive(0) should do what you want. cu Torst

Re: [pygtk] Panel applet taking button2

1999-11-02 Thread Edward Muller
My 2 Cents: 1) What do you want to do on the button 2 click? The reason why I ask this is that most of us have probably become accustomed to what happens when we right click on an applet, we get the standard applet menu plus any menu items the developer wanted to add to it. I know that If I wa

Re: [pygtk] Panel applet taking button2

1999-11-02 Thread Hrvoje Niksic
[ Has this response reached the list? I've sent it once, but I don't see it in my inbox. Sorry if you're reading this twice. ] James Henstridge <[EMAIL PROTECTED]> writes: > >From what I remember, the button press events are redirected to the panel > when you add the widget to the applet wit

[pygtk] suggestion for MenuFactory

1999-11-02 Thread Rick Ree
Adding the following to GtkExtra.py allows tearoff menu items to be added in the same way that separators are. BTW, how does one 'gray out' or disable a menu item? --Rick 47,48d46 < elif label == '': < item = GtkTearoffMenuItem() To unsubscribe: echo "unsubs

Re: [pygtk] How to obtain the pointer position?

1999-11-02 Thread Rob Hodges
> If your widget has a window (ie. not a label or other simple widget), you > should be able to look at the pointer attribute of its GdkWindow: > x,y = widget.get_window().pointer > > This will be relative to the window's top left corner. That is, if the > pointer is above the window, a negati