- Posts: 1931
- Thank you received: 394
Gmoccapy - A new screen for linuxcnc
- newbynobi
- Offline
- Moderator
-
Thanks for reporting the bug, i will corect tomorow!
Norbert
P.S. to update, best is to use 2.6 buildnot repository!
Please Log in or Create an account to join the conversation.
- Johnny-Don
- Offline
- New Member
-
- Posts: 7
- Thank you received: 0
newbynobi wrote: Hi Johnny-Don,
as Marius sayed, no file is attached to your post.
To do what you are trying, I would suggest:
Take a HAL_HBox or a HAL_Table and place your button in the containers. Both have an IN BIT Pin, controling if the child widgets are sensitive or not.
6.9. Containers: HAL_HBox and HAL_Table
Compared to their Gtk counterparts they have one input BIT pin which controls if their child widgets are sensitive or not. If the pin is low then child widgets are inactive which is the default.
Tip
If you find some part of your GladeVCP application is grayed out (insensitive), see whether a container’s pin is unset.
from GladeVCP docu
Now you only have to add a hal file to your embedded tab
EMBED_TAB_COMMAND = gladevcp -x {XID} -u ./usr/bin/paneljdj.py -H paneljdj.hal paneljdj.glade
and in this file you connect (check syntax!, as I am not on my linux computer and names are unclear):
net auto halui.mode.is_auto => not.in
net notauto not.out => hal_container.in
And it is done.
_______________________________________________________________________
If you realy want to import gmoccapy, you will have to check the following:
Is gmoccapy in your python path: In Ubuntu 10.04 it should be in
/usr/lib/pymodules/python2.6/gmoccapy
But it is not there!!!!
you will find a file named gmoccapy in /usr/bin/
copy this file to /usr/lib/pymodules/python2.6/gmoccapy/ and rename it to be gmoccapy.py
Now try again to import gmoccapy from gmoccapy and report.
All this is untested!!!
Norbert
Marius, thank you, I thought maybe it was awaiting approval.
Norbert, thank you a ton, I have not been on this project since last Thursday, but am back on it today. In light of your new info I dont see any point of posting my py file in it's current state. I am going to work out what you have suggested and give it a try. Thanks a bundle for the input, it never even crossed my mind to monitor HALUI pins. I will let all know how it goes.
Edit:
That works perfectly Norbert, thank you a ton! Below is the contents actual paneljdj.hal that I used. I had to re-do some things in my glade file to place all buttons in 'HAL Sensitive Tables' as they are called in Glade Interface Designer. What an amazing feature. I am a novice at Glade as well.
loadrt not count=1
addf not.o servo-thread
net auto halui.mode.is-auto => not.0.in
net notauto not.0.out => paneljdj.wheel_btn_tab
This has saved me many mores hours of painstaking work, I do appreciate it. Until next time, thank you!
Please Log in or Create an account to join the conversation.
- franstrein
- Offline
- Junior Member
-
- Posts: 27
- Thank you received: 2
Thanks for your fast response and creation of gmoccapy 1.5.1.4.
That solved indeed my problem.
And the new buttons, turtle and rabbit jogging, are very useful.
For instance last night I was doing deep-drilling, using manual controls with the z-axis jogging button, doing slow drilling and fast retracts with the new button.
Keep up the good work and thanks,
Frans
Please Log in or Create an account to join the conversation.
- Swapper
- Offline
- Junior Member
-
- Posts: 20
- Thank you received: 0
mariusl wrote: Hi Norbert
I agree that we need some better touch off features. If you want to go that route with touch off then you might as well look at a lot more options like circle centres and many more.
IMHO we need a tab with touch off features and leave the run of the mill stuff as it is. Once you start down this road you will find that even the space at the bottom is not enough for what can be done.
The attached file shows what is a good set of touch off functions. That is why I think we need a tab for this.
You must also consider lathe users.
Would it be hard to dock this probe gui in gmoccapy?
linuxcnc.org/index.php/english/forum/40-...gcgui?start=30#37039
github.com/cnc-club/linuxcnc-features
Then all the "hard" probe stuff is done already.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
- Posts: 19899
- Thank you received: 4655
Swapper wrote: Would it be hard to dock this probe gui in gmoccapy?
I am wondering if it could be created as a standalone GladeVCP "tab" that could be embedded into any GUI.
I have been thinking of setting up something similar as a tab in my Touchy config.
Please Log in or Create an account to join the conversation.
- anarchos
- Offline
- New Member
-
- Posts: 4
- Thank you received: 1
Please Log in or Create an account to join the conversation.