- Posts: 926
- Thank you received: 0
New side panel and axisui pins
Attachment not found
here is the relevant part
i tried to do it like the docs/plasmac for the feedrate pin to make axisui.feedrate-upm , but it would always make to pyvcp and couldnt connect to it, so i just did it in pyvcp hal, what am i missing/did wrong to make these axisui pins, the pins are just connected to basic pins so i was hoping this wouldnt be so bulky , if anyone could help me out that would be great
Attachment not found
Attachment not found
Attachment not found
Please Log in to join the conversation.
Have you ever tried to program your (side) windows with glade gtk2 (with linuxcnc widgets)?
If i where you, i would invest some time in that way of programming.
If you have questions about installing the glade linuxcnc widgets, i can give you info.
Please Log in to join the conversation.
Attachment not found
Are you sure there is no reference to PYVCP in your ini file.
Edit: I just tried with a PYVCP panel as well and it seems there is a conflict. If you have a PYVCP panel then the custom axisui hal pins are not created, the pins are created as pyvcp pins. It looks like a relatively simple fix in Axis, I'll test it and put in a PR if if works out.
Please Log in to join the conversation.
Yes, I have a pyvcp, doing almost the same thing as the new side panel, which is causing me issues with the pins created. Interesting, so if i have a pyvcp in my ini it changes them to pyvcp comps, is that this area right here creating axisui pins then changing the comp prefix to pyvcp?phillc54 wrote: Are you sure there is no reference to PYVCP in your ini file.
Edit: I just tried with a PYVCP panel as well and it seems there is a conflict. If you have a PYVCP panel then the custom axisui hal pins are not created, the pins are created as pyvcp pins. It looks like a relatively simple fix in Axis, I'll test it and put in a PR if if works out.
I just checked, without pyvcp it makes my pins axisui, so aside from all this my code is alright?
I do that, for tabs and side panels (not well mind you) but I would have no idea where to start with embedding it into different frames aside from the standard wayGrotius wrote: Hi Cakeslob,
Have you ever tried to program your (side) windows with glade gtk2 (with linuxcnc widgets)?
If i where you, i would invest some time in that way of programming.
If you have questions about installing the glade linuxcnc widgets, i can give you info.
Please Log in to join the conversation.
From:
From:
Please Log in to join the conversation.
Please Log in to join the conversation.
here is the farthest ive got with the search function. there is no entry widget, im just using key4 to search the file for "3". it works, but it finds them all at once and jumps to the very last found line, instead of one at a time. since that was as far as i could get function wise, i started packing widgets for the other part of it
This file is usercommand_search, it has all the layout. But once i added the entry widget I started getting a bunch of errors with the search feature, like tuple and now it says Im not presenting an argument. Im a bit stuck here. Im also having a hard time binding these to buttons. binding them to keyboard commands works fine and easy but to do buttons it made a whole thing of it being events and such. the whole thing is pretty crude, but the main functions and widgets are all there.
so, what Im trying to get it to do in the very end
-put something in search
-search arrow next button jumps/highlights the closest line with that expression
-search arrow prev jumps backwards to the closest line
-hijack the run command to do something similar to fanuc, like, if not line 1 push button again to run from line
the tkinter text widget has a log of unused features. it looks like it has the ability to edit as well, here is my progress so far
Attachment not found
Please Log in to join the conversation.
This part was much easier. In axis, there is already defined actions to scroll up and down g code as well as run from line. this is very handy for lots of reasons, mostly if you prefer keyboard only type setups. To transfer this to buttons is a bit more work and im not there yet. This was the first part of my test, since it was already included in axis.py, it just needed to be fixed
key 1 moves the highlighted line to the next spot
key 2 moves it to previous line
key 3 is supposed to run from line, but because the righclick dialog is part of it, it opens the dialog and i use arrow key to run from line
this is different from axis because this scrolls with the highlighted line
select_next and select_prev are already defined, but when I went looking, they dont seem to be tied to anything, so i bound them to some keys. select previous worked fine outta the box. select next always jumped back to line 1 and never advanced. so i had to change it a bit
I changed select_next from i = min to i = max and it now scrolls next correctly
Please Log in to join the conversation.
I have the search part working, but I cannot send the text from the search entry to the search command. i just keeps searching for " '.pane.bottom.common.srch_bar.get()' " [/strike] ahh i got it, just have to figure out how to clear the entries/highlights
attached file "usercommand_search.py"
this is the working search command. it searches forward and highlights the line containing the search (g3) using key 4. then using key3 you can run from line or pressing 4 again searches for the next line with g3. attached file "usercommand_searchg3.py"
known issues so far
-it searches the line numbers
-doesnt remove highlight even if you change search query
-it needs cleaning up for when no search entry, or end of search
-buttons dont work yet
Please Log in to join the conversation.
Attachment not found
Attachment not found
-add new tab to left side
not a fancy dynamic tab or glade, but like the manual tab
-add buttons to preview frame
cant get it to go first, cant figure out how to forget the preview widget or what the name is
-expand widgets
press number 5 and 6 to toggle the 2 options
Attachment not found
Attachment not found
Attachment not found
Please Log in to join the conversation.
