Re: [Emc-users] Questions about Axis tweaks with .axisrc

2021-04-21 Thread Ralph Stirling
Oh yea, and one more:

3) How do I make my new button gray out
 before E-stop is released?

-- Ralph

From: Ralph Stirling
Sent: Wednesday, April 21, 2021 8:53 PM
To: emc-users@lists.sourceforge.net
Subject: Questions about Axis tweaks with .axisrc

I am trying to strip down Axis a bit for
a non-machining application of Linuxcnc.
I have been using the web page at:
http://linuxcnc.org/docs/html/gui/axis.html

and the axis.py source from 2.8.1 to try
to figure it out.  I managed to make the
coolant and spindle sections hide, but
have two remaining unsolved problems.

1) I want to hide the Touch Off button next
to the Home Axis button, but have been
unable to figure out what that widget is
called (is there a list of widgets somewhere?).

2) I have created a Go To Axis Home button
that successfully sends the current axis
(from the radio buttons) to the homed
position, but I can't make it line up with
the Home Axis button.  Ideally, I'd like to
replace the Touch Off button with this
Go Home button, but it isn't clear to me
how to do that either.

My .axisrc file presently looks like this:

~~~
root_window.attributes("-zoomed", True)
root_window.tk.call('grid','forget','.pane.top.tabs.fmanual.jogf.zerohome.tooltouch')
root_window.tk.call('button','.pane.top.tabs.fmanual.gohome','-text','Go To 
Axis Home','-command','gohome_clicked')
root_window.tk.call('grid','.pane.top.tabs.fmanual.gohome','-column','1','-row','4')

def gohome_clicked():
axis = vars.ja_rbutton.get()
print 'axis=',axis
if s.interp_state == linuxcnc.INTERP_IDLE:
mode = s.task_mode
if s.task_mode != linuxcnc.MODE_MDI:
c.mode(linuxcnc.MODE_MDI)
c.mdi('G53 G0 ' + axis + '0.0')

TclCommands.gohome_clicked = gohome_clicked
commands = TclCommands(root_window)
~~~

I've played around with the grid call on line 4, but without
much effect.

Anybody got some tips for me?

Thanks,
-- Ralph


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Just updated buster-master, lost camera, again.

2021-04-21 Thread Gene Heskett
Greetings all;

My new camera has been working well until a recent update, with this as 
the camera invoker in that machines .ini file.

In [DISPLAY] section:

EMBED_TAB_NAME = Camera
EMBED_TAB_COMMAND = gladevcp -x {XID} camview.glade

But this morning, on checking after an update, I now log this to the 
launching terminal and the camera tab is blank white:
-
(gladevcp:8731): libglade-WARNING **: 13:08:46.052: Expected 
.  Got .

(gladevcp:8731): libglade-WARNING **: 13:08:46.052: did not finish in 
PARSER_FINISH state
 GLADE VCP ERROR:With xml file: camview.glade : could not create 
GladeXML object


The rest of linuxcnc -l runs normally.

I edited camview.glade to change the 'interface" lines 
to "glade-interface" but that changes the error to:

---
(gladevcp:9160): libglade-WARNING **: 13:32:57.273: unknown attribute 
`version' for .

(gladevcp:9160): libglade-WARNING **: 13:32:57.273: Unexpected element 
 inside .

(gladevcp:9160): libglade-WARNING **: 13:32:57.273: Could not load 
support for `gtk+': libgtk+.so: cannot open shared object file: No such 
file or directory
Traceback (most recent call last):
  File "/usr/bin/gladevcp", line 349, in 
main()
  File "/usr/bin/gladevcp", line 207, in main
window.set_title(opts.component)
AttributeError: 'NoneType' object has no attribute 'set_title'
--

What should I change to restore the camera tab function? Or has debian 
finally put ring shank nails in the gladevcp coffin lid?

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users