Re: [pygtk] hscale interaction.

2002-10-23 Thread Christian Reis
On Thu, Oct 24, 2002 at 02:41:25PM +1300, Rob Brown-Bayliss wrote:
> getting called and re-adjusting the slider.  Useing button_press to turn
> of the timeout does notwork, basically  the widget seems to be not

Tried changing the event mask? Or doesn't it have its own X window?

Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



Re: [pygtk] hscale interaction.

2002-10-23 Thread Rob Brown-Bayliss
On Thu, 2002-10-24 at 14:02, Christian Reis wrote:

> Play with the widget is a bit vague.. motion_notify? focus_in?
> button_press? key_press?


Yes, it is a bit vague, I need to stop the timeout update when a user is
manipulating the widget.  I have tried the proximity, the focus and the
button press events but they are not getting through.  Basically once
the user has clicked on the slider to adjust the setting the update is
getting called and re-adjusting the slider.  Useing button_press to turn
of the timeout does notwork, basically  the widget seems to be not
issuing the the buttonpress event. the motion notify gets called  when
ever the timeout callback adjusts the value so thats not working either.





-- 

*  Rob Brown-Bayliss
*  =
*  zoism.org
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



Re: [pygtk] hscale interaction.

2002-10-23 Thread Christian Reis
On Thu, Oct 24, 2002 at 01:52:12PM +1300, Rob Brown-Bayliss wrote:
> I need to be able to interact with this widget, but if an update happens
> while playing with it then results are unpredictable.
> 
> So I need to know when a user is about play with the widget. 

Play with the widget is a bit vague.. motion_notify? focus_in?
button_press? key_press?

Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



[pygtk] hscale interaction.

2002-10-23 Thread Rob Brown-Bayliss

Hi.

I have an hscale widget that I update 4 times a second.  

I need to be able to interact with this widget, but if an update happens
while playing with it then results are unpredictable.

So I need to know when a user is about play with the widget. 

What signals can I use to detect this?


-- 
*  Rob Brown-Bayliss
*  =
*  zoism.org
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



Re: [pygtk] Detecting clicks on a Drawing Area

2002-10-23 Thread John Finlay
The example Scribble program in the PyGTK tutorial shows how to get and 
handle events for a drawingarea as well as how to setup a backing pixmap 
for handling the expose events:

http://www.moeraki.com/pygtktutorial/ch-scribble.html

John

LDC - Pablo Endres Lozada wrote:


	Ok here is how I'm doing the painting:

	self.pixmacOK, mask = 
gtk.create_pixmap_from_xpm(self.Main, self.style.bg[gtk.STATE_NORMAL], 
self.macOK)

	area.draw_pixmap(self.gc, self.pixmacOK, 0, 0, x1, y,
 self.pixmacOK.width, self.pixmacOK.height)

	How do I setup the event handler to a simple pixmap or even
	easyer how to a draw a gtk.Pixmap on the Drawing area?



___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



Re: [pygtk] Detecting clicks on a Drawing Area

2002-10-23 Thread LDC - Pablo Endres Lozada
On Wed, 23 Oct 2002, Christian Reis wrote:

> On Wed, Oct 23, 2002 at 08:30:46AM -0400, LDC - Pablo Endres Lozada wrote:
> > Hi, I drew some pixmaps on a Drawing Area and now I 
> > need to detect a click on them.  Any ideas?
> On Wed, Oct 23, 2002 at 08:30:46AM -0400, LDC - Pablo Endres Lozada wrote:
> > Hi, I drew some pixmaps on a Drawing Area and now I 
> > need to detect a click on them.  Any ideas?
> 
> Use the "button_press_event" signal, I guess, if nothing higher-level is
> offered by the drawingarea.

Ok here is how I'm doing the painting:

self.pixmacOK, mask = 
gtk.create_pixmap_from_xpm(self.Main, self.style.bg[gtk.STATE_NORMAL], 
self.macOK)

area.draw_pixmap(self.gc, self.pixmacOK, 0, 0, x1, y,
 self.pixmacOK.width, self.pixmacOK.height)

How do I setup the event handler to a simple pixmap or even
easyer how to a draw a gtk.Pixmap on the Drawing area?

> 
> Take care,
> --
> Christian Reis, Senior Engineer, Async Open Source, Brazil.
> http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
> 

-- 
Muchas personas creen que piensan,
cuando en realidad sólo están reordenando sus
prejuicios.
- William James
 
   .-.
  /  .-.   Pablo Endres Lozada.-.  \
 |  /   \   Laboratorio Docente de Computacion  /   \  |
 | |\_.  |USB - Venezuela  |/| |
 |\|  | /| |\  | |/|
 | `---' |   [EMAIL PROTECTED] | `---' |
 |   | |   | 
 |   |-|   |
 \   | |   /
  \ /   \ /
   `---' `---'

___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



Re: [pygtk] Detecting clicks on a Drawing Area

2002-10-23 Thread Christian Reis
On Wed, Oct 23, 2002 at 08:30:46AM -0400, LDC - Pablo Endres Lozada wrote:
>   Hi, I drew some pixmaps on a Drawing Area and now I 
>   need to detect a click on them.  Any ideas?

Use the "button_press_event" signal, I guess, if nothing higher-level is
offered by the drawingarea.

Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



[pygtk] Detecting clicks on a Drawing Area

2002-10-23 Thread LDC - Pablo Endres Lozada


Hi, I drew some pixmaps on a Drawing Area and now I 
need to detect a click on them.  Any ideas?

-- 
Muchas personas creen que piensan,
cuando en realidad sólo están reordenando sus
prejuicios.
- William James

Pablo Endres
Centro de Datos

GSM:  +584127347610


___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/