Re: [Emc-users] Pyngcgui questions

2016-02-21 Thread tom-emc
That’s good to know.  Thanks John.
-Tom

> On Feb 20, 2016, at 1:15 PM, John Thornton  wrote:
> 
> The limit on subroutine parameters is 1 through 30.
> 
> JT
> 
> On 2/20/2016 12:05 PM, tom-...@bgp.nu wrote:
>> I modified this slightly so that if the number of parameters is greater than 
>> 25 (25 happen to fit nicely in the space on my monitor) it will create 
>> another column parameters.  By the way, I suspect it is very uncommon for a 
>> subroutine to require so many parameters.  All the subroutines I have found 
>> so far have less than 15 or so.  So really a single column would suffice 
>> most times...
>> 
>> Also, if I get some time I may try to play with the gtk container to see if 
>> I can make it scrollable if the parameters go off screen.
>> 
>> 
>>   # try to use minimum height if less than 3 columns
>>   if nparms > 25:
>> # My Edit:
>>   rowmax = 25
>>   #rowmax = 10
>>   else:
>> # My Edit:
>>   rowmax = nparms
>>   #rowmax  = int(nparms/2 + 0.5)
>> 
>>   self.pentries = {}
>> 
>> 
>> -Tom
>> 
>>> On Feb 19, 2016, at 2:48 PM, tom-...@bgp.nu wrote:
>>> 
>>> 
 On Feb 19, 2016, at 1:11 PM, Dewey Garrett  wrote:
 
> ...
> Is there a way to make them appear as vertical list?
 no
>>> Thanks Dewey.  I found the .py file and modified the “make_entryfields" 
>>> function to set the number of rows equal to the number of parameters.  That 
>>> way there is one row per parameter and they all fall down a single column.  
>>>  A hack, but it works.
>>> 
>>> Also, why couldn’t the subroutine parameters area be set to a 
>>> gtk.ScrolledWindow rather than a gtk.Frame so as to at least allow one to 
>>> scroll if the parameters go off the screen?
>>> 
>>> -Tom
>>> 
>>> 
>>> See “My Edit:” below -
>>> 
>>>   def make_entryfields(self,nparms):
>>>   self.no _of_entries = nparms
>>>   # make VBoxes as required to accomodate entries
>>>   # destroy them when starting over -- this occurs
>>>   # when a OnePg is reused for a different subfile
>>>   try:
>>>   type(self.columnbox) # test for existence
>>>   # destroy prior VBoxes packed in self.boxofcolumns
>>>   for c in self.boxofcolumns.children():
>>>self.boxofcolumns.remove(c)
>>>c.destroy()
>>>del(c)
>>>   except AttributeError:
>>>   # first-time: create initial VBox for entries
>>>   self.columnbox = gtk.VBox(homogeneous=0,spacing=2)
>>> 
>>>   self.boxofcolumns.pack_start(self.columnbox)
>>> 
>>>   # try to use minimum height if less than 3 columns
>>>   if nparms > 20:
>>> # My Edit:
>>>   rowmax = nparms
>>>   #rowmax = 10
>>>   else:
>>> # My Edit:
>>>   rowmax = nparms
>>>   #rowmax  = int(nparms/2 + 0.5)
>>> 
>>>   self.pentries = {}
>>>   row  = 0
>>>   idx  = 1 # 1-based to agree with parm no.s
>>>   for i in range(0,nparms):
>>>   if row >= rowmax:
>>>   row = 0
>>>   # make a new VBox for next column of entries
>>>   self.columnbox = gtk.VBox(homogeneous=0,spacing=2)
>>>   self.boxofcolumns.pack_start(self.columnbox)
>>>   self.pentries[idx] = OneParmEntry('','','')
>>>   self.columnbox.pack_start(self.pentries[idx].box
>>>,expand=0,fill=0,padding=0)
>>>   row += 1
>>>   idx += 1
>>>   self.boxofcolumns.show_all()
>>> --
>>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>>> Monitor end-to-end web transactions and take corrective actions now
>>> Troubleshoot faster and improve end-user experience. Signup Now!
>>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
>>> ___
>>> Emc-users mailing list
>>> Emc-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/emc-users
>> 
>> --
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
>> ___
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
> 
> 
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 

Re: [Emc-users] Pyngcgui questions

2016-02-20 Thread John Thornton
The limit on subroutine parameters is 1 through 30.

JT

On 2/20/2016 12:05 PM, tom-...@bgp.nu wrote:
> I modified this slightly so that if the number of parameters is greater than 
> 25 (25 happen to fit nicely in the space on my monitor) it will create 
> another column parameters.  By the way, I suspect it is very uncommon for a 
> subroutine to require so many parameters.  All the subroutines I have found 
> so far have less than 15 or so.  So really a single column would suffice most 
> times...
>
> Also, if I get some time I may try to play with the gtk container to see if I 
> can make it scrollable if the parameters go off screen.
>
> 
># try to use minimum height if less than 3 columns
>if nparms > 25:
> # My Edit:
>rowmax = 25
>#rowmax = 10
>else:
> # My Edit:
>rowmax = nparms
>#rowmax  = int(nparms/2 + 0.5)
>
>self.pentries = {}
> 
>
> -Tom
>
>> On Feb 19, 2016, at 2:48 PM, tom-...@bgp.nu wrote:
>>
>>
>>> On Feb 19, 2016, at 1:11 PM, Dewey Garrett  wrote:
>>>
 ...
 Is there a way to make them appear as vertical list?
>>> no
>> Thanks Dewey.  I found the .py file and modified the “make_entryfields" 
>> function to set the number of rows equal to the number of parameters.  That 
>> way there is one row per parameter and they all fall down a single column.   
>> A hack, but it works.
>>
>> Also, why couldn’t the subroutine parameters area be set to a 
>> gtk.ScrolledWindow rather than a gtk.Frame so as to at least allow one to 
>> scroll if the parameters go off the screen?
>>
>> -Tom
>>
>>
>> See “My Edit:” below -
>>
>>def make_entryfields(self,nparms):
>>self.no _of_entries = nparms
>># make VBoxes as required to accomodate entries
>># destroy them when starting over -- this occurs
>># when a OnePg is reused for a different subfile
>>try:
>>type(self.columnbox) # test for existence
>># destroy prior VBoxes packed in self.boxofcolumns
>>for c in self.boxofcolumns.children():
>> self.boxofcolumns.remove(c)
>> c.destroy()
>> del(c)
>>except AttributeError:
>># first-time: create initial VBox for entries
>>self.columnbox = gtk.VBox(homogeneous=0,spacing=2)
>>
>>self.boxofcolumns.pack_start(self.columnbox)
>>
>># try to use minimum height if less than 3 columns
>>if nparms > 20:
>> # My Edit:
>>rowmax = nparms
>>#rowmax = 10
>>else:
>> # My Edit:
>>rowmax = nparms
>>#rowmax  = int(nparms/2 + 0.5)
>>
>>self.pentries = {}
>>row  = 0
>>idx  = 1 # 1-based to agree with parm no.s
>>for i in range(0,nparms):
>>if row >= rowmax:
>>row = 0
>># make a new VBox for next column of entries
>>self.columnbox = gtk.VBox(homogeneous=0,spacing=2)
>>self.boxofcolumns.pack_start(self.columnbox)
>>self.pentries[idx] = OneParmEntry('','','')
>>self.columnbox.pack_start(self.pentries[idx].box
>> ,expand=0,fill=0,padding=0)
>>row += 1
>>idx += 1
>>self.boxofcolumns.show_all()
>> --
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
>> ___
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
>
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!

Re: [Emc-users] Pyngcgui questions

2016-02-20 Thread tom-emc
I modified this slightly so that if the number of parameters is greater than 25 
(25 happen to fit nicely in the space on my monitor) it will create another 
column parameters.  By the way, I suspect it is very uncommon for a subroutine 
to require so many parameters.  All the subroutines I have found so far have 
less than 15 or so.  So really a single column would suffice most times...

Also, if I get some time I may try to play with the gtk container to see if I 
can make it scrollable if the parameters go off screen.


  # try to use minimum height if less than 3 columns
  if nparms > 25:
# My Edit:
  rowmax = 25
  #rowmax = 10
  else:
# My Edit:
  rowmax = nparms
  #rowmax  = int(nparms/2 + 0.5)

  self.pentries = {}


-Tom

> On Feb 19, 2016, at 2:48 PM, tom-...@bgp.nu wrote:
> 
> 
>> On Feb 19, 2016, at 1:11 PM, Dewey Garrett  wrote:
>> 
>>> ...
>>> Is there a way to make them appear as vertical list?
>> no
> 
> Thanks Dewey.  I found the .py file and modified the “make_entryfields" 
> function to set the number of rows equal to the number of parameters.  That 
> way there is one row per parameter and they all fall down a single column.   
> A hack, but it works.  
> 
> Also, why couldn’t the subroutine parameters area be set to a 
> gtk.ScrolledWindow rather than a gtk.Frame so as to at least allow one to 
> scroll if the parameters go off the screen?
> 
> -Tom
> 
> 
> See “My Edit:” below -
> 
>   def make_entryfields(self,nparms):
>   self.no _of_entries = nparms
>   # make VBoxes as required to accomodate entries
>   # destroy them when starting over -- this occurs
>   # when a OnePg is reused for a different subfile
>   try:
>   type(self.columnbox) # test for existence
>   # destroy prior VBoxes packed in self.boxofcolumns
>   for c in self.boxofcolumns.children():
>self.boxofcolumns.remove(c)
>c.destroy()
>del(c)
>   except AttributeError:
>   # first-time: create initial VBox for entries
>   self.columnbox = gtk.VBox(homogeneous=0,spacing=2)
> 
>   self.boxofcolumns.pack_start(self.columnbox)
> 
>   # try to use minimum height if less than 3 columns
>   if nparms > 20:
> # My Edit:
>   rowmax = nparms
>   #rowmax = 10
>   else:
> # My Edit:
>   rowmax = nparms
>   #rowmax  = int(nparms/2 + 0.5)
> 
>   self.pentries = {}
>   row  = 0
>   idx  = 1 # 1-based to agree with parm no.s
>   for i in range(0,nparms):
>   if row >= rowmax:
>   row = 0
>   # make a new VBox for next column of entries
>   self.columnbox = gtk.VBox(homogeneous=0,spacing=2)
>   self.boxofcolumns.pack_start(self.columnbox)
>   self.pentries[idx] = OneParmEntry('','','')
>   self.columnbox.pack_start(self.pentries[idx].box
>,expand=0,fill=0,padding=0)
>   row += 1
>   idx += 1
>   self.boxofcolumns.show_all()
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Pyngcgui questions

2016-02-19 Thread tom-emc

> On Feb 19, 2016, at 1:11 PM, Dewey Garrett  wrote:
> 
>> ...
>> Is there a way to make them appear as vertical list?
> no

Thanks Dewey.  I found the .py file and modified the “make_entryfields" 
function to set the number of rows equal to the number of parameters.  That way 
there is one row per parameter and they all fall down a single column.   A 
hack, but it works.  

Also, why couldn’t the subroutine parameters area be set to a 
gtk.ScrolledWindow rather than a gtk.Frame so as to at least allow one to 
scroll if the parameters go off the screen?

-Tom


See “My Edit:” below -

   def make_entryfields(self,nparms):
   self.no _of_entries = nparms
   # make VBoxes as required to accomodate entries
   # destroy them when starting over -- this occurs
   # when a OnePg is reused for a different subfile
   try:
   type(self.columnbox) # test for existence
   # destroy prior VBoxes packed in self.boxofcolumns
   for c in self.boxofcolumns.children():
self.boxofcolumns.remove(c)
c.destroy()
del(c)
   except AttributeError:
   # first-time: create initial VBox for entries
   self.columnbox = gtk.VBox(homogeneous=0,spacing=2)

   self.boxofcolumns.pack_start(self.columnbox)

   # try to use minimum height if less than 3 columns
   if nparms > 20:
# My Edit:
   rowmax = nparms
   #rowmax = 10
   else:
# My Edit:
   rowmax = nparms
   #rowmax  = int(nparms/2 + 0.5)

   self.pentries = {}
   row  = 0
   idx  = 1 # 1-based to agree with parm no.s
   for i in range(0,nparms):
   if row >= rowmax:
   row = 0
   # make a new VBox for next column of entries
   self.columnbox = gtk.VBox(homogeneous=0,spacing=2)
   self.boxofcolumns.pack_start(self.columnbox)
   self.pentries[idx] = OneParmEntry('','','')
   self.columnbox.pack_start(self.pentries[idx].box
,expand=0,fill=0,padding=0)
   row += 1
   idx += 1
   self.boxofcolumns.show_all()
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Pyngcgui questions

2016-02-19 Thread Dewey Garrett
> I was wishing there was a python version and google told me it was
> already there!  

pyngcgui is mentioned in the documentation, for example:
http://linuxcnc.org/docs/2.7/html/gui/ngcgui.html#_standalone_pyngcgui

> When I run it standalone and click "Finalize" nothing appears
> in Axis.  What is missing?

$ pyngcgui --help

For standalone usage with the axis gui try:
$ pyngcgui --sendtoaxis

> ...
> Is there a way to make them appear as vertical list?
no

Notes:
1. If using a rip build, you must source the rip-environment script when
   starting linuxcnc _and_ in the terminal used to start a related, stand-alone
   application like pyngcgui.

2. The --height option mentioned with --help was removed but the --help
   message needs to be updated to remove the mention (will amend soon).
-- 
Dewey Garrett


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Pyngcgui questions

2016-02-19 Thread tom-emc
I just discovered Pyngcgui.  I’ve been using standalone ngcgui for a while.  
Little nits about it’s UI have always driven me crazy.  Mostly that if my 
cursor drifts out of the tiny box when entering values it loses focus.  I was 
wishing there was a python version and google told me it was already there!  
Yay.

When I run it standalone and click “Finalize" nothing appears in Axis.  What is 
missing?

When I run it in a tab in Axis, iit does post results in Axis,but I can’t see 
all the parameters I need to enter because I have limited screen real estate 
(mostly width) and Axis and my Glade side panel truncate the Pyngcgui window a 
bit.   It would be nice if the parameters for a each subroutine could be made a 
vertical list rather than vertical AND horizontal as they are now.  I tried 
editing the .ui file in glade-gtk2 but I don’t see the actual parameters or 
entry boxes for them, just a place holder for the subroutine parameters.  Is 
there a way to make them appear as vertical list?

-Tom


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users