Re: [Emc-users] Numeric entry with touchscreen and Glade
Andy have you a 5i20 ? i'm trying to add in the orient ( m19 ) can you see where i should link it in , i have a feeling i totaly lost the plot and trying to follow to add a mux for selecting 2 pwmgen scales for the gearbox as i also need to operate a relay too so is a mux approprate as you discussed http://www.linuxcnc.org/index.php/english/forum/39-pncconf/28432-lathe-spindle-control-help-needed-in-pncconf?start=20 and becoming confused in the process , probably because i'm using a 5i20 and not a 5i25 which i'm more familiar with full config folder attached if it make it easier to open i have 2 pwmgen scales which are halcmd setp pwmgen.scale -5950 ( high range and default ) and low range halcmd setp pwmgen.scale -1550 along with a gpio pin to select true at the same time as this scale halcmd setp hm2_5i20.0.gpio.069.out if you haver a few mins Andy guide me out of this maze and correct me on the path to enlightenment as i'm sure iv'e mucked up somewhere On 28 October 2014 23:46, andy pugh bodge...@gmail.com wrote: On 28 October 2014 22:32, andy pugh bodge...@gmail.com wrote: Thanks, that works a treat. Bah! Within limits anyway. I have ended up with a GtkEntry that has both icons active as up and down buttons. Looks good for touchscreen use. But I can't figure out how to get the icons to operate and also have the pop-up keyboard come up when something other than the icons is pressed. The whole widget responds to button_click, and the click-position is relative to the icon or the text entry, so no way to distinguish the icons from each other, or the left-hand edge of the text from either icon. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users daves-cpy.tar.gz Description: GNU Zip compressed data -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
On 29 October 2014 09:00, David Armstrong cncbas...@gmail.com wrote: Andy have you a 5i20 ? No, I have a 5i23 and a 6i25 (and a 7i80HD). Which means I can't trivially try out the config. i'm trying to add in the orient ( m19 ) can you see where i should link it in , i have a feeling i totaly lost the plot That's a lot of HAL files you have there. Which INI file are you currently using? At the moment motion.spindle-orient doesn't seem to be going anywhere, and the spindle position pid has commented-out feedback. I should point out that I don't actually have orient configured on my spindle, there isn't really much need. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
Arh ok Andy thought you may have a 5i20 ( dont know what made me think you had ) sorry i'm trying to be able to configure for 2 pwmgen scales and switch a relay operated gearbox only 1 speed change i'm using mylinuxcnc.hal .. and following or trying to the comments you made here http://www.linuxcnc.org/index.php/english/forum/39-pncconf/28432-lathe-spindle-control-help-needed-in-pncconf?start=20 iv'e made some changes so here's the hal file , just see if it makes sense for the scaling and spindle or if you can follow it updated hal file in the next post Andy , need to swap pc's On 29 October 2014 16:50, andy pugh bodge...@gmail.com wrote: On 29 October 2014 09:00, David Armstrong cncbas...@gmail.com wrote: Andy have you a 5i20 ? No, I have a 5i23 and a 6i25 (and a 7i80HD). Which means I can't trivially try out the config. i'm trying to add in the orient ( m19 ) can you see where i should link it in , i have a feeling i totaly lost the plot That's a lot of HAL files you have there. Which INI file are you currently using? At the moment motion.spindle-orient doesn't seem to be going anywhere, and the spindle position pid has commented-out feedback. I should point out that I don't actually have orient configured on my spindle, there isn't really much need. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
Dave, I have a 5i20. What boards do you have attached to the 5i20? What are you trying to do? Dave On 10/29/2014 4:00 AM, David Armstrong wrote: Andy have you a 5i20 ? i'm trying to add in the orient ( m19 ) can you see where i should link it in , i have a feeling i totaly lost the plot and trying to follow to add a mux for selecting 2 pwmgen scales for the gearbox as i also need to operate a relay too so is a mux approprate as you discussed http://www.linuxcnc.org/index.php/english/forum/39-pncconf/28432-lathe-spindle-control-help-needed-in-pncconf?start=20 and becoming confused in the process , probably because i'm using a 5i20 and not a 5i25 which i'm more familiar with full config folder attached if it make it easier to open i have 2 pwmgen scales which are halcmd setp pwmgen.scale -5950 ( high range and default ) and low range halcmd setp pwmgen.scale -1550 along with a gpio pin to select true at the same time as this scale halcmd setp hm2_5i20.0.gpio.069.out if you haver a few mins Andy guide me out of this maze and correct me on the path to enlightenment as i'm sure iv'e mucked up somewhere On 28 October 2014 23:46, andy pugh bodge...@gmail.com wrote: On 28 October 2014 22:32, andy pugh bodge...@gmail.com wrote: Thanks, that works a treat. Bah! Within limits anyway. I have ended up with a GtkEntry that has both icons active as up and down buttons. Looks good for touchscreen use. But I can't figure out how to get the icons to operate and also have the pop-up keyboard come up when something other than the icons is pressed. The whole widget responds to button_click, and the click-position is relative to the icon or the text entry, so no way to distinguish the icons from each other, or the left-hand edge of the text from either icon. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
On 10/27/2014 2:07 PM, Chris Morley wrote: Sorry I don't have one with large spin buttons but maybe you could google that. Google ended up in a DenverCoder9 experience. [1] http://xkcd.com/979/ -- Oh well :) Worse than that is when the only other person you can find with the same problem posts a reply to the thread saying I fixed it! or something similar without saying HOW it was fixed. --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
On 28 October 2014 03:24, Chris Morley chrisinnana...@hotmail.com wrote: In general I create my signals and handlers programmically because of this. and this particular problem, updating a widget without endless loop seems common but I have not seen a well thought out (by GTK creators) way. Looking at it, this seems to be swapping one bit of config in the Glade editor for one line of code in the handler so isn't exactly hard. I wonder if the handles to be blocked can be kept in a tuple? -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
If you use the activate signal that is only fired when you press enter. It does not fire when you use set_text() to change all the other entries. JT On 10/27/2014 9:25 PM, andy pugh wrote: On 28 October 2014 02:17, Kirk Wallace kwall...@wallacecompany.com wrote: In my UI the DP entry gets processed with the on_dp_entry_activate callback. The Mod gets processed with on_mod_entry_activate. Part of the processing of one entry is to calculate and update the other entry display. That's interesting. I have been using value-changed. I should try the others. But not tonight... -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
On 28 October 2014 12:08, John Thornton bjt...@gmail.com wrote: If you use the activate signal that is only fired when you press enter. It does not fire when you use set_text() to change all the other entries. Interesting. That isn't when i would have expected the activate event to fire. Is there a reference known to anyone that lists exactly when the various events trigger? It seems less than 100% obvious from the event names. I would imagine that the enter event triggers when you press enter and the activate event when you click in the control. But I could equally well imagine those events being exactly reversed. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
http://www.pygtk.org/pygtk2reference/class-gtkentry.html The activate gtk.Entry Signal def callback(entry, user_param1, ...) entry : the entry that received the signal user_param1 : the first user parameter (if any) specified with the connect() method ... : additional user parameters (if any) The activate signal is emitted when the entry is activated either by user action (pressing the Enter key) or programmatically with the gtk.Widget.activate() method JT On 10/28/2014 7:50 AM, andy pugh wrote: On 28 October 2014 12:08, John Thornton bjt...@gmail.com wrote: If you use the activate signal that is only fired when you press enter. It does not fire when you use set_text() to change all the other entries. Interesting. That isn't when i would have expected the activate event to fire. Is there a reference known to anyone that lists exactly when the various events trigger? It seems less than 100% obvious from the event names. I would imagine that the enter event triggers when you press enter and the activate event when you click in the control. But I could equally well imagine those events being exactly reversed. -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
On 28 October 2014 13:19, John Thornton bjt...@gmail.com wrote: The activate signal is emitted when the entry is activated either by user action (pressing the Enter key) or programmatically with the gtk.Widget.activate() method I had rather assumed that activate triggered when the widget changed state out of a disabled state. it appears I was wrong. Now I look, the events are clickable to a description of what they mean, in those docs. Thanks. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
On 27 October 2014 14:55, Dewey Garrett dgarr...@panix.com wrote: There is a numeric-only popup keyboard used with pyngcgui in some sim configs (example: configs/sim/touchy/ngcgui/pyngcgui_touchy.ini) (based on original work by J. Thornton) Thanks, that works a treat. :-) -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
On 28 October 2014 22:32, andy pugh bodge...@gmail.com wrote: Thanks, that works a treat. Bah! Within limits anyway. I have ended up with a GtkEntry that has both icons active as up and down buttons. Looks good for touchscreen use. But I can't figure out how to get the icons to operate and also have the pop-up keyboard come up when something other than the icons is pressed. The whole widget responds to button_click, and the click-position is relative to the icon or the text entry, so no way to distinguish the icons from each other, or the left-hand edge of the text from either icon. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Numeric entry with touchscreen and Glade
My milling machine has a a touchscreen, and no keyboard. It works nicely with Touchy for normal milling. I am trying to set up a custom tab for the hobbing setup. I have it working, but entering DP and tooth count is a bit painful. I am currently using spinbuttons, but as far as I can see (and as far as google can see) there is no way to make the spinbutton arrows bigger than tiny which is rather awkward on a touchscreen. So, what is the right way to do numeric entry in GladeVCP and a touchscreen? -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
There is a numeric-only popup keyboard used with pyngcgui in some sim configs (example: configs/sim/touchy/ngcgui/pyngcgui_touchy.ini) (based on original work by J. Thornton) Example python code to use: #!/usr/bin/env python import popupkeyboard g_popkbd = popupkeyboard.PopupKeyboard(use_coord_buttons=False) if g_popkbd.run(initial_value='',title='your_title'): print result=,g_popkbd.get_result() else: print user canceled -- Dewey Garrett -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
Andy As I have it, the size of the spinbox is fixed but if you have a look at how we did it in the plasma screen of gmoccapy it might help. We used a button for positive increment and one for negative. There is s label above the buttons and that label value is changed by pushing either button. Small bit of python is required to run the buttons. On 2014-10-27 14:29, andy pugh wrote: My milling machine has a a touchscreen, and no keyboard. It works nicely with Touchy for normal milling. I am trying to set up a custom tab for the hobbing setup. I have it working, but entering DP and tooth count is a bit painful. I am currently using spinbuttons, but as far as I can see (and as far as google can see) there is no way to make the spinbutton arrows bigger than tiny which is rather awkward on a touchscreen. So, what is the right way to do numeric entry in GladeVCP and a touchscreen? -- Regards /Groete Marius D. Liebenberg +27 82 698 3251 +27 12 743 6064 QQ 1767394877 -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
On 27 October 2014 19:35, Chris Morley chrisinnana...@hotmail.com wrote: The GTK theme controls the basic size of such things. Here is a theme with large sliders that works better with touch screens. Thanks but it looks like I can't avoid coding anyway, so I will look at the popup keyboard first. Sorry I don't have one with large spin buttons but maybe you could google that. Google ended up in a DenverCoder9 experience. [1] http://xkcd.com/979/ -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
From: bodge...@gmail.com Date: Mon, 27 Oct 2014 19:50:32 + To: emc-users@lists.sourceforge.net Subject: Re: [Emc-users] Numeric entry with touchscreen and Glade On 27 October 2014 19:35, Chris Morley chrisinnana...@hotmail.com wrote: The GTK theme controls the basic size of such things. Here is a theme with large sliders that works better with touch screens. Thanks but it looks like I can't avoid coding anyway, so I will look at the popup keyboard first. Sorry I don't have one with large spin buttons but maybe you could google that. Google ended up in a DenverCoder9 experience. [1] http://xkcd.com/979/ -- Oh well :) For anyone else interested: in the gtkrc file I previously posted: look in that file for: style spin { engine pixmap { image { function= BOX recolorable = TRUE state= PRELIGHT file= spin2.png border = { 4,5,4,5 } stretch = TRUE } snip add to it: style spin { xthickness = 20 ythickness = 20 engine pixmap snip It is easy to over do this. In fact to really do this right it is possible to only change the size of specific spinboxes... but it ties you to a theme that was made for it. Chris M -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
From: bodge...@gmail.com Date: Mon, 27 Oct 2014 19:50:32 + To: emc-users@lists.sourceforge.net Subject: Re: [Emc-users] Numeric entry with touchscreen and Glade On 27 October 2014 19:35, Chris Morley chrisinnana...@hotmail.com wrote: The GTK theme controls the basic size of such things. Here is a theme with large sliders that works better with touch screens. Thanks but it looks like I can't avoid coding anyway, so I will look at the popup keyboard first. Sorry I don't have one with large spin buttons but maybe you could google that. Google ended up in a DenverCoder9 experience. [1] http://xkcd.com/979/ I might add that 'onboard' and 'matchbox' virtual keyboards are meant for this sort of thing. Onboard at least, allow custom keyboard definitions. Onboard is not available with debian annoyingly Chris M -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
I seem to have found an earlier point to stall at. The application is a GUI for my hobber. I want to be able to enter DP in the DP box, or Mod in the Mod box. If I enter a Mod number I want the DP box to be updated to show the equivalent DP, And vice-versa. Unfortunately this ends up in an infinite loop of calls, as the change to one invokes a callback that changes the other which invokes a callback. ] In VBA you get round this with Application.ProcessEvents = 0 (IIRC). Does anyone know how to do the equivalent thing with Python and Glade. (Using Glade to create the GUI means no chance to grab the event handler ID at event connection time) module.handler_block_by_func(module.on_change) dp.handler_block_by_func(dp.on_change) Looked like it might work, but doesn't. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
From: bodge...@gmail.com Date: Tue, 28 Oct 2014 01:32:19 + To: emc-users@lists.sourceforge.net Subject: Re: [Emc-users] Numeric entry with touchscreen and Glade I seem to have found an earlier point to stall at. The application is a GUI for my hobber. I want to be able to enter DP in the DP box, or Mod in the Mod box. If I enter a Mod number I want the DP box to be updated to show the equivalent DP, And vice-versa. Unfortunately this ends up in an infinite loop of calls, as the change to one invokes a callback that changes the other which invokes a callback. ] In VBA you get round this with Application.ProcessEvents = 0 (IIRC). Does anyone know how to do the equivalent thing with Python and Glade. (Using Glade to create the GUI means no chance to grab the event handler ID at event connection time) module.handler_block_by_func(module.on_change) dp.handler_block_by_func(dp.on_change) Looked like it might work, but doesn't. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto Probably the easiest is to add a ignore flag to your handlers. Then set the ignore flag, call the handler then unset the flag, ready for the next real entry. Ugly but it works - This is what Chris R did in TOUCHY. I have never found a cleaner/easier method. Chris M -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
On 28 October 2014 01:58, Chris Morley chrisinnana...@hotmail.com wrote: Probably the easiest is to add a ignore flag to your handlers. Then set the ignore flag, call the handler then unset the flag, ready for the next real entry. Hmm. What I didn't mention is that there are 4 boxes in practice (mm and inch CP too) so I was hoping to use the same handler for all of them, and just decide who was the new-one on entry. Maybe I just have to re-think the GUI design. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
From: bodge...@gmail.com Date: Tue, 28 Oct 2014 02:06:04 + To: emc-users@lists.sourceforge.net Subject: Re: [Emc-users] Numeric entry with touchscreen and Glade On 28 October 2014 01:58, Chris Morley chrisinnana...@hotmail.com wrote: Probably the easiest is to add a ignore flag to your handlers. Then set the ignore flag, call the handler then unset the flag, ready for the next real entry. Hmm. What I didn't mention is that there are 4 boxes in practice (mm and inch CP too) so I was hoping to use the same handler for all of them, and just decide who was the new-one on entry. Maybe I just have to re-think the GUI design. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto The caller sends a reference of the widget. So you can check what called the handler. I am not sure what style of handler you are using.. def my_handler(self,widget): if widget == SOME WIDGET REFERENCE and flag: return True again hard to suggest without code in front of me. Chris M -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
On 10/27/2014 06:32 PM, andy pugh wrote: I seem to have found an earlier point to stall at. The application is a GUI for my hobber. I want to be able to enter DP in the DP box, or Mod in the Mod box. If I enter a Mod number I want the DP box to be updated to show the equivalent DP, And vice-versa. Unfortunately this ends up in an infinite loop of calls, as the change to one invokes a callback that changes the other which invokes a callback. ] In VBA you get round this with Application.ProcessEvents = 0 (IIRC). Does anyone know how to do the equivalent thing with Python and Glade. (Using Glade to create the GUI means no chance to grab the event handler ID at event connection time) module.handler_block_by_func(module.on_change) dp.handler_block_by_func(dp.on_change) Looked like it might work, but doesn't. In my UI the DP entry gets processed with the on_dp_entry_activate callback. The Mod gets processed with on_mod_entry_activate. Part of the processing of one entry is to calculate and update the other entry display. Changing the other entry from the calc doesn't cause an activate, so there is no looping. It may be that looking at what event is being used for your entry might shed light on your loop. -- Kirk Wallace http://www.wallacecompany.com/machine_shop/ http://www.wallacecompany.com/E45/ -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
On 28 October 2014 02:17, Kirk Wallace kwall...@wallacecompany.com wrote: In my UI the DP entry gets processed with the on_dp_entry_activate callback. The Mod gets processed with on_mod_entry_activate. Part of the processing of one entry is to calculate and update the other entry display. That's interesting. I have been using value-changed. I should try the others. But not tonight... -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
On 28 October 2014 02:17, Chris Morley chrisinnana...@hotmail.com wrote: The caller sends a reference of the widget. So you can check what called the handler. Does that help me distinguish between programatic changes to the value and User changes? ie it was me, it was you? Thinking about it, if I end up using a pop-up keypad this might all be moot, the keypad can call the update values code. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
From: bodge...@gmail.com Date: Tue, 28 Oct 2014 02:34:42 + To: emc-users@lists.sourceforge.net Subject: Re: [Emc-users] Numeric entry with touchscreen and Glade On 28 October 2014 02:17, Chris Morley chrisinnana...@hotmail.com wrote: The caller sends a reference of the widget. So you can check what called the handler. Does that help me distinguish between programatic changes to the value and User changes? ie it was me, it was you? Thinking about it, if I end up using a pop-up keypad this might all be moot, the keypad can call the update values code. Unfortunately not, it only tells you who sent the message. but since you know _you_ sent the message (by using the flag) you probably can make it work. Glade signals options using the glade editor is weak. In general I create my signals and handlers programmically because of this. and this particular problem, updating a widget without endless loop seems common but I have not seen a well thought out (by GTK creators) way. PNCconf goes to great lengths to overcome this and I would do it different if I did it again (I'd use flags) Chris M -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users