Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-29 Thread David Armstrong
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

Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-29 Thread andy pugh
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

Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-29 Thread David Armstrong
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

Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-29 Thread Dave Cole
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

Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-28 Thread Gregg Eshelman
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

Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-28 Thread andy pugh
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.

Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-28 Thread John Thornton
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

Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-28 Thread andy pugh
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

Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-28 Thread John Thornton
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

Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-28 Thread andy pugh
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

Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-28 Thread andy pugh
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

Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-28 Thread andy pugh
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

[Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread andy pugh
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

Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread Dewey Garrett
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

Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread Marius Liebenberg
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.

Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread andy pugh
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

Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread Chris Morley
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

Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread Chris Morley
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

Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread andy pugh
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

Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread Chris Morley
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

Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread andy pugh
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

Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread Chris Morley
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

Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread Kirk Wallace
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

Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread andy pugh
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.

Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread andy pugh
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,

Re: [Emc-users] Numeric entry with touchscreen and Glade

2014-10-27 Thread Chris Morley
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