Changing "Spindle Override" label text
22 Jul 2024 22:21 #305876
by stirra
Changing "Spindle Override" label text was created by stirra
This should be an easy thing, but my facility with tk is not great. I want to change the text of the spindle override widget without editing the /usr/lib/python3/dist-packages/qtvcp/plugins/status_label_plugin.py file where it is set up in the first place. I have successfully changed text of the .pane.top.tabs.fmanual.spindlel label widget using the tk call shown in the Axis documentation:
root_window.tk.call('setup_widget_accel', '.pane.top.tabs.fmanual.spindlel','Wire Voltage')
This does not work for the tkinter.Scale widget spinoverride or spinoverridef. I'm sure I'm missing some simple step. Is there a good set of documentation for the tcl/tk code interface for working with widgets?
Thanks again,
-- Ralph
root_window.tk.call('setup_widget_accel', '.pane.top.tabs.fmanual.spindlel','Wire Voltage')
This does not work for the tkinter.Scale widget spinoverride or spinoverridef. I'm sure I'm missing some simple step. Is there a good set of documentation for the tcl/tk code interface for working with widgets?
Thanks again,
-- Ralph
Please Log in or Create an account to join the conversation.
22 Jul 2024 23:35 #305877
by cakeslob
Replied by cakeslob on topic Changing "Spindle Override" label text
i dont think anythign you change in qtvcp will change axis.
which one are you trying to set? the one in the manual tab or the one beside the sider?
"are there good docs?"
only what Phil has made for the axis docs, otherwise it gets rather confusing because we are passing tcl/tk as strings through python, so its not tkinter, and its not just tcltk
this is the best site, as well as using plasmac2 config as an example
www.tcl.tk/man/tcl8.6/TkCmd/label.htm
github.com/LinuxCNC/linuxcnc/blob/master...plasmac2/plasmac2.py
here is my shitty one, but its got good references
github.com/cakeslob/regularmac_800
which one are you trying to set? the one in the manual tab or the one beside the sider?
root_window.tk.call( '.pane.top.tabs.fmanual.spindlel','configure','-text','buttbutt tab')
root_window.tk.call( '.pane.top.spinoverride.l','configure','-text','buttbutt slider')
"are there good docs?"
only what Phil has made for the axis docs, otherwise it gets rather confusing because we are passing tcl/tk as strings through python, so its not tkinter, and its not just tcltk
this is the best site, as well as using plasmac2 config as an example
www.tcl.tk/man/tcl8.6/TkCmd/label.htm
github.com/LinuxCNC/linuxcnc/blob/master...plasmac2/plasmac2.py
here is my shitty one, but its got good references
github.com/cakeslob/regularmac_800
The following user(s) said Thank You: stirra
Please Log in or Create an account to join the conversation.
23 Jul 2024 02:45 #305882
by stirra
Replied by stirra on topic Changing "Spindle Override" label text
The second was what I wanted. I just needed spinoverride.l rather than just spinoverride .
The foam cutter I'm working on is getting close to functionality.
Thanks again.
-- Ralph
The foam cutter I'm working on is getting close to functionality.
Thanks again.
-- Ralph
Please Log in or Create an account to join the conversation.
Time to create page: 0.142 seconds