#flex-dev Logs
Nov 09 2025
#flex-dev Calendar
04:32 AM Tom_L: morning
06:11 AM lcnc-relay: <AllAboutJake@> ok HTTP is workin'; 🙂
06:44 AM JT-Cave: Tom_L, [PYTHON]
06:44 AM JT-Cave: TOPLEVEL=./toplevel.py
06:44 AM JT-Cave: PATH_APPEND= ./
06:44 AM JT-Cave: why is that in the tp3 ini?
06:44 AM JT-Cave: and not included...
06:45 AM JT-Cave: can't resolve path to './toplevel.py'
06:45 AM JT-Cave: Interp ctor: can't instantiate Python plugin
06:45 AM JT-Cave: can't resolve path to './toplevel.py'
06:45 AM JT-Cave: Python plugin configure() failed, status = -5
06:56 AM lcnc-relay: <Lyn@> Tom_L, thanks for metric subroutines, and the ui file :)
07:12 AM Tom_L: JT-Cave, i copied that from touch-probe3
07:13 AM JT-Cave: what does it do in touch probe 3?
07:13 AM Tom_L: probably nothing
07:14 AM JT-Cave: and you broke the led's with your layout madness :)
07:14 AM Tom_L: in what way?
07:16 AM Tom_L: i undoubtedly copied touch-probe3 config from another working one too
07:16 AM JT-Cave: nested layouts break the replacement code
07:16 AM JT-Cave: I can't find any reference to a section called [PYTHON] but it must do something ie the error when it can't find the file
07:22 AM Tom_L: the toplevel thing was for remap
07:22 AM Tom_L: like m6
07:24 AM JT-Cave: if you're not using remap you might consider removing that from the example
07:25 AM Tom_L: yeah like i said those were copied from working configs but i'm not using m6 remap on these
07:26 AM Tom_L: but someone could be and if it breaks something else, that could become a problem
07:30 AM JT-Cave: if they add remap then they would be responsible to add that
07:30 AM JT-Cave: if it causes an error when ran it's not a good example
07:31 AM lcnc-relay: <AllAboutJake@> Time to step away and get some coffee, but experimenting with a "recangular bool property" for LEDs:
07:31 AM lcnc-relay: <AllAboutJake@> https://jauriarts.org/_heisenbridge/media/jauriarts.org/KIJxnAIgMUSXnLWOtKNFiHkK/1HTs5sqImIg/rectleds.gif
07:32 AM Tom_L: there is a [PYTHON] section in each of the .ini files i removed
07:49 AM Tom_L: PR #390
07:53 AM Tom_L: i also removed the led code fromm tp3-touch e-stop, power & probe enable buttons
07:55 AM Tom_L: nested layouts are valid
07:57 AM JT-Cave: yup
08:00 AM JT-Cave: oh well led's are broken until I can find a way to get a reference to the layout they are in
08:12 AM Tom_L: it was a long shot to get what i was after. having the separate led indicator on another tab.
08:13 AM Tom_L: i know for me, it's a steep learning curve
08:14 AM lcnc-relay: <AllAboutJake@> JT-Cave: Is this related to my change or something different?
08:14 AM Tom_L: it's hard to say
08:14 AM Tom_L: since that gui is new also
08:14 AM Tom_L: i can install a previous flexgui and see...
08:15 AM Tom_L: if i still have one for rpi
08:15 AM JT-Cave: jake no it's an issue finding a widget in a nested layout then replaceing that widget
08:15 AM JT-Cave: to use the replace method you need the containing layout
08:16 AM JT-Cave: QLayout.replaceWidget()
08:16 AM lcnc-relay: <AllAboutJake@> Ahh got it
08:16 AM lcnc-relay: <AllAboutJake@> Yeah I didn’t go anywhere near that.
08:16 AM JT-Cave: so the led's are a subclassed widget and I have to replace the original with the subclassed but I need the layout to do that
08:18 AM Tom_L: The simplest and most direct method is to use findChild()
08:18 AM JT-Cave: child.parent().layout() returns the main window layout :(
08:18 AM JT-Cave: I have the child already
08:18 AM JT-Cave: I need the layout the child is in
08:18 AM JT-Cave: for child in parent.findChildren(QPushButton):
08:18 AM JT-Cave: if child.property('led_indicator'):
08:18 AM JT-Cave: ...
08:19 AM lcnc-relay: <AllAboutJake@> If I were to send this “square” or “rectangular” leds (see homing indicators in the DRO of the screenshot above) as a pull request…. what would be your preferred API? Right now in my code it’s bool called “rectangular” but I’m thinking of changing it to a dynamic property string called “shape” and then having string values like “round” or “rectangle”
08:21 AM lcnc-relay: <AllAboutJake@> Default when not present or wrong would be the current round variant
08:22 AM JT-Cave: shape sounds good to me
08:24 AM * JT-Cave gives up and starts his shicken chit day
08:25 AM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/bugs/findchild.txt
08:25 AM Tom_L: paste wouldn't take that
08:44 AM JT-Cave: I already have the child
08:45 AM JT-Cave: <JT-Cave> for child in parent.findChildren(QPushButton):
08:45 AM JT-Cave: <JT-Cave> if child.property('led_indicator'):
08:49 AM Tom_L: open that txt file and look at the bottom
08:54 AM Tom_L: may need to refresh
09:00 AM JT-Cave: the code at the bottom is what I'm trying to finger out how to return the layout
09:01 AM JT-Cave: https://paste.debian.net/1405355/
09:05 AM Tom_L: added a bit more to the txt
09:17 AM JT-Cave: https://pasteboard.co/PFO317ID8wYm.png
09:18 AM JT-Cave: https://paste.debian.net/1405358/
09:19 AM Tom_L: gettin closer?
10:07 AM lcnc-relay: <AllAboutJake@> I want a label that just shows the current coordinate system. Kinda like gcodes_lb but just the G54-G59.2. Is there such a thing?
10:13 AM JT-Cave: https://pasteboard.co/eYg3lXG89Zqc.png
10:23 AM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/rpi5/Rpi5_touch_DRO.png
10:23 AM Tom_L: there are others you can add
10:25 AM Tom_L: went and filled up the vehicles.. should have had a coat
10:25 AM Tom_L: 37F currently with a nice breeze
10:28 AM Tom_L: JT-Cave, thanks that fixed it
10:34 AM Tom_L: jake, https://www.gnipsel.com/linuxcnc/flexgui/labels.html#id1
10:35 AM Tom_L: g5x_offset_lb, g5x_index_lb
10:36 AM Tom_L: PR #391
10:42 AM lcnc-relay: <AllAboutJake@> Ahh. Cool
10:43 AM JT-Cave: that only fixed the one led the rest are still broken
10:44 AM Tom_L: i added the 3 back in my local ui and they work
10:44 AM Tom_L: estop power probe enable
10:46 AM Tom_L: none of the buttons disappear and the leds on them function properly
10:48 AM JT-Cave: yes but the other types of leds are broken
10:49 AM Tom_L: qlabel ones?
10:49 AM JT-Cave: yup every led is broken except led indicators
10:50 AM Tom_L: i should put the flood/mist back on somewhere to test
10:50 AM Tom_L: would those be broke?
10:51 AM JT-Cave: indicator buttons are fixed
10:52 AM JT-Cave: hal led, hal led label, hal led button are all broken
10:52 AM Tom_L: ok
10:56 AM * JT-Cave goes back to picking up hoses
11:24 AM Tom_L: flood/mist leds work
11:29 AM Tom_L: ok i put them inside a layout to break them for future testing
11:37 AM JT-Cave: I "think" all led types work now in nested layouts...
11:52 AM Tom_L: ok i tied 2 leds to a single postgui pin
11:53 AM Tom_L: mist
11:53 AM Tom_L: works in led and led label
11:54 AM Tom_L: am i able to create a 'probe-enable' hal pin in postgui yet?
11:54 AM Tom_L: that's the part i haven't followed here that close
11:54 AM Tom_L: i'll test the nested leds in a bit
11:57 AM JT-Cave: you can't create hal pins in hal afaik
11:58 AM lcnc-relay: <AllAboutJake@> Yeah I think that’s why it’s “postgui”. The UI sets up the pin and then you can connect it up in the postgui Hal
12:10 PM * JT-Cave takes a nap before starting in on HAL_IO
12:10 PM JT-Cave: or C3 tbd
12:16 PM Tom_rpi5: postgui-tp3-touch.hal:20: Pin 'flexhal.flood' does not exist
12:17 PM Tom_rpi5: when in a nested layout
12:17 PM Tom_L: vertical layout in a group box that has a grid layout
12:17 PM Tom_L: remove the layouts and they work
12:24 PM Tom_L: vertical layout in a group box that has NO layout works
12:24 PM Tom_L: so adding a 2nd layer of layout breaks it
12:28 PM Tom_L: in a group box with a grid layout also works
12:29 PM Tom_L: so it's more than 1 level of nesting that breaks it
12:34 PM Tom_L: vertical layout in a group box with grid layout -> broken
12:36 PM Tom_rpi5: results in:
12:36 PM Tom_rpi5: postgui-tp3-touch.hal:20: Pin 'flexhal.flood' does not exist
01:08 PM lcnc-relay: <roguish> Tom_L: you guys are really working it...
01:09 PM Tom_L: that's why we get paid the big bux
01:10 PM lcnc-relay: <roguish> rolf....
01:16 PM lcnc-relay: <roguish> Tom_L: how's the nose...
01:16 PM lcnc-relay: <roguish> I got an MRI on my right knee yesterday.....
01:16 PM Tom_L: slowly healing
01:17 PM lcnc-relay: <roguish> torn Miniscus 2-1/2 years ago, just started hurting again 2 weeks ago
01:24 PM JT-Cave: https://pasteboard.co/ILZd1MTdqnCf.png
01:24 PM Tom_L: nice
01:25 PM JT-Cave: all those connections are made in postgui.hal
01:25 PM xxcoder: nice. yeah some stuff take years to finally do final healing
01:25 PM Tom_L: did you see the nesting bug?
01:26 PM JT-Cave: can not reproduce it
01:26 PM Tom_L: i can post my test ui if you want
01:26 PM JT-Cave: those pins are all nested more than once
01:27 PM Tom_L: vertical in a grid yes
01:27 PM JT-Cave: https://pasteboard.co/ejxhTbdmZp1C.png
01:28 PM JT-Cave: https://pasteboard.co/agcVGdAv0Asq.png
01:28 PM Tom_L: i think we're goin nuts with leds
01:28 PM JT-Cave: https://pasteboard.co/hOtATR6PY1KV.png
01:29 PM JT-Cave: that would be good because I can't reproduce the error
01:30 PM Tom_L: it'll be a few, i can't get to that pc right now
01:30 PM Tom_L: it's covered with other pcs
01:30 PM * JT-Cave goes to roll up hoses
01:30 PM xxcoder: 🪏
01:36 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/rpi5/GUI/ledtest/
01:36 PM Tom_L: i put the test in the DRO tab
01:36 PM Tom_L: it had some extra room to play
01:39 PM Tom_L: run it as is and you get the error. break the layout on the TEST group box and it works
01:40 PM Tom_L: the probe enable ones do nothing right now
01:40 PM Tom_L: just hopeful thinking
01:44 PM JT-Shop: prob because you have covered up the leds with a layout
01:45 PM JT-Shop: so they are under a layout but not in a layout I'll have to test for that I guess
01:45 PM Tom_L: it's the only way i could figure to get them aligned
01:45 PM Tom_L: they should be in a layout
01:45 PM Tom_L: lemme fiddle a bit and see
01:46 PM JT-Shop: the layout is on top of them
01:46 PM JT-Shop: you can't select any because the layout is on top
01:46 PM Tom_L: ok i'll try to fix then test
01:46 PM Tom_L: finishing up something else then i'll test
01:46 PM JT-Shop: don't change it till I copy it down stairs
01:47 PM JT-Shop: I want to see where it thinks they are
01:47 PM Tom_L: i'm not gonna change the server copy
01:48 PM * Tom_L shuts down 2 other unneeded PCs now
01:51 PM Tom_L: i think you're right
02:04 PM JT-Cave: it's failing to find the layout that the led is in for some reason
02:07 PM Tom_L: it wasn't in the layout like you said
02:07 PM Tom_L: i made sure they're in layouts now and so far things seem to be working
02:21 PM JT-Cave: containers don't need to be in layouts you set the layout on them with right click
02:21 PM Tom_L: like the group box?
02:21 PM JT-Cave: still have no clue why the leds fail to find the layout
02:22 PM Tom_L: i can get them to work here but not appear in the layout like i want
02:22 PM JT-Cave: group box, tab widget, frame, widget any in the container section
02:22 PM Tom_L: yeah i've been right clicking for the group box
02:22 PM JT-Cave: them?
02:22 PM Tom_L: and tab
02:22 PM Tom_L: the leds
02:22 PM Tom_L: them
02:22 PM JT-Cave: ah ok
02:23 PM Tom_L: designer doesn't want to honor some rules it sets
02:23 PM Tom_L: ie fixed minimum size etc
02:23 PM JT-Cave: I've tried recreating the leds in layouts and container but no failures
02:23 PM Tom_L: mine either come out too big or too small :)
02:24 PM Tom_L: it's certainly a learning processs
02:24 PM Tom_L: -s
02:27 PM JT-Cave: https://pasteboard.co/UcaEHIRLJCAc.png
02:27 PM JT-Cave: but when an led is created you loose that...
02:28 PM Tom_L: stretch doesn't seem to work either
02:31 PM JT-Cave: RuntimeError: Can't set value: pin / param flexhal.probe-enable not found
02:32 PM JT-Cave: https://pasteboard.co/Kqv7DbVbWWgg.png
02:33 PM JT-Cave: look at the pin name vs the error pin name
02:35 PM JT-Cave: even if I delete that led I still get the above error
02:35 PM Tom_L: there isn't an led hiding under a layout is there?
02:35 PM Tom_L: i've lost labels like that...
02:37 PM Tom_L: i was gonna suggest standardizing on_color off_color and led_on_color led_off_color
02:37 PM Tom_L: led vs label led
02:38 PM JT-Cave: you have two probe enables one is probe-enable and the other one is probe_enable
02:39 PM Tom_L: are you in the led test ui?
02:40 PM JT-Cave: yup and I have no clue where the second on is I just searched the ui file in pluma for pin_name
02:40 PM * JT-Cave goes to roll up hoses
02:41 PM Tom_L: same here
02:51 PM JT-Cave: https://pasteboard.co/XrCyPHGb5gUD.png
02:51 PM JT-Cave: there's a problem with the two led labels below the probe enable label
03:02 PM Tom_L: i don't see them
03:02 PM Tom_L: i got mine layed out ok now
03:04 PM JT-Shop: https://pasteboard.co/qhsqfo9cUatv.png
03:04 PM JT-Shop: those two
03:09 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/bugs/led_test_page.png
03:09 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/bugs/led_test_page2.png
03:13 PM Tom_L: i had to frame them to get them all the same
03:17 PM JT-Shop: is the webpage updated with those changes
03:17 PM Tom_L: no i haven't touched it at all
03:17 PM Tom_L: i can
03:17 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/bugs/led_test_page3.png
03:17 PM Tom_L: latest edits
03:18 PM Tom_L: i'll post them on the server
03:18 PM Tom_L: postgui needs a flood label added
03:19 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/rpi5/GUI/ledtest/
03:19 PM Tom_L: the hal txt has the postgui changes
03:21 PM Tom_L: this is all local work, nothing in flex/examples has changed
03:55 PM JT-Cave: https://pasteboard.co/LXREOzUQIJgc.png
03:55 PM JT-Cave: https://pasteboard.co/7NqLNu8wKm7F.png
03:56 PM lcnc-relay: <roguish> JT-Cave: check this if you can https://www.wsj.com/lifestyle/cars/formula-one-miami-grand-prix-precision-drive-club-25ba9d66?mod=hp_featst_pos5
03:56 PM JT-Cave: one hal pin for 4 led's or led labels
03:56 PM JT-Cave: that's subscriptionware
03:59 PM lcnc-relay: <roguish> https://jauriarts.org/_heisenbridge/media/matrix.org/lcDPQKJWEtKotiebOJcrDyHZ/gyubEDq3mwc/image.png
04:00 PM lcnc-relay: <roguish> https://jauriarts.org/_heisenbridge/media/matrix.org/rCsFYpclKfGciEtMmtzyQaag/ZWJoo1lORIo/image.png
04:00 PM lcnc-relay: <roguish> JT-Cave yeah, Wall Street Journal... definitely paywalled
04:04 PM Tom_L: leds in a grid
04:05 PM JT-Shop: multiple leds with the same pin name
04:05 PM Tom_L: yeah pretty cool
04:05 PM JT-Shop: and multiple led labels with the same pin name
04:05 PM Tom_L: figuring out all the options could be interesting
04:05 PM JT-Shop: so you can have a probing enabled led on every tab
04:06 PM Tom_L: what signal do i use to get it from the probe enable button?
04:06 PM JT-Shop: hmm
04:08 PM JT-Shop: see if the probe enable button will take a hal pin
04:09 PM Tom_rpi5: type bool?
04:10 PM JT-Shop: no just a hal push button pin
04:12 PM Tom_rpi5: do i need a direction?
04:12 PM JT-Shop: hmm
04:12 PM Tom_rpi5: https://www.gnipsel.com/linuxcnc/flexgui/hal.html
04:12 PM Tom_rpi5: looking at hal button
04:12 PM JT-Shop: yup just function and pin name
04:12 PM JT-Shop: direction is always out for a hal button
04:13 PM Tom_rpi5: does the probe label need a pin?
04:14 PM JT-Shop: yeah led and led labels need a pin name but they can be the same name but not the same as the button pin name
04:15 PM Tom_rpi5: that didn't work
04:15 PM JT-Shop: what happened?
04:15 PM Tom_rpi5: could help if i uncomment the line in the postgui
04:16 PM Tom_rpi5: ostgui-tp3-touch.hal:26: Pin 'flexhal.probe-enable-led' does not exist
04:18 PM Tom_rpi5: doesn't create a button pin
04:18 PM JT-Shop: ok
04:18 PM Tom_rpi5: postgui-tp3-touch.hal:26: Pin 'flexhal.probeing-enable' does not exist
04:18 PM Tom_rpi5: wait
04:19 PM Tom_rpi5: yeah even with the fixed typo it doens't create a pin
04:20 PM Tom_rpi5: net probe_enable_pin flexhal.probing-enable => probe-enable
04:20 PM JT-Shop: I get an error that I'll have to check into
04:22 PM Tom_rpi5: making sure they all have unique names
04:26 PM JT-Shop: adding a hal pin to probe enable btn works for me
04:28 PM Tom_L: might help if i were editing the right ui too
04:28 PM * Tom_L goes to double check everything
04:34 PM JT-Shop: https://pasteboard.co/LiBE4vdNoXZD.png
04:34 PM JT-Shop: those 4 leds are on when probing is enabled
04:35 PM Tom_L: i give the button a pin name and get a warning that the pin name already exhists
04:35 PM Tom_L: even if i rename it
04:35 PM Tom_L: post your button dynamic properties
04:36 PM JT-Shop: https://pasteboard.co/ltoYnW2jBf3h.png
04:36 PM JT-Shop: all 4 leds have the same dynamic properties with the same pi name
04:37 PM JT-Shop: https://pasteboard.co/crT6BsKmvyox.png
04:37 PM Tom_L: the button properties must have changed
04:37 PM JT-Shop: https://pasteboard.co/t8SspVl35bu3.png
04:37 PM JT-Shop: how so?
04:39 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/bugs/hal_led.png
04:39 PM Tom_L: that's what i have for the leds
04:40 PM JT-Shop: type and direction are no longer used but shouldn't have any effect
04:41 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/bugs/probe-enable.png
04:41 PM Tom_L: and the button
04:42 PM Tom_L: i'll do that over.. blocking function
04:42 PM Tom_L: function hal_pin
04:42 PM JT-Shop: hmm having a hal pin and led in the probe enable might be an issue
04:43 PM Tom_L: i don't need an led on the button
04:43 PM Tom_L: remove it?
04:43 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/bugs/probe-enable.png
04:43 PM Tom_L: better snapshot
04:44 PM Tom_L: i'll disable the led
04:44 PM JT-Shop: yeah just checked and the led and hal pin collide
04:46 PM Tom_L: yeah i'm not getting very far
04:46 PM Tom_L: i'll delete the led stuff from the button
04:47 PM Tom_L: show your button properties..
04:50 PM Tom_L: i wonder if it's the layout
04:52 PM JT-Shop: https://pasteboard.co/RlwdqpX2ZuU0.png
04:53 PM JT-Shop: led indicator causes an error
04:53 PM JT-Shop: https://pasteboard.co/3mPnRZS04TPU.png
04:58 PM Tom_L: it may be because the led is in a layout
04:59 PM JT-Shop: my led's are in a layout
04:59 PM Tom_L: i'll redo the led
05:03 PM Tom_L: something isn't right
05:03 PM Tom_L: i'll work on it later.. i need a break
05:05 PM * JT-Shop watches Leo build Tally Ho
05:05 PM Tom_L: ok the probe button is toggling in hal show
05:05 PM JT-Shop: cool
05:08 PM Tom_L: it says the led is there in hal show but it won't let me connect it
05:09 PM Tom_L: if i use a net it says the led is already there
05:09 PM JT-Shop: sounds like a name issue
05:11 PM Tom_L: i got rid of them all and checked hal show
05:11 PM Tom_L: making a new led
05:12 PM JT-Shop: the led pin names can be the same but they must be different from the button pin name
05:15 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/bugs/probe-enable-led.png
05:16 PM Tom_L: i need to add flexhal. to it...
05:18 PM Tom_L: duh
05:21 PM Tom_L: ok led and label both work now
05:22 PM JT-Shop: cool
05:22 PM Tom_L: sometime you get stuck running in the same circle
05:22 PM JT-Shop: lol
05:23 PM JT-Shop: pretty cool that you can do that
05:24 PM Tom_L: but the button led can't be used with this which is fine by me
05:24 PM Tom_L: what? run in circles... i do that alot
05:25 PM Tom_L: this morning it was still a dream..
05:26 PM JT-Shop: that's the amazing thing about flex
05:27 PM JT-Shop: it's cool that jake is adding to the function of flex
05:27 PM * JT-Shop calls it a day
05:27 PM lcnc-relay: <roguish> JT-Shop: have you asked apugh about getting flex in the full linxcnc distribution ???
05:28 PM JT-Shop: not interested in adding to the emc gui bloat
05:29 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/bugs/probe-led-test.png
05:29 PM JT-Shop: sweet
05:29 PM JT-Shop: say goodnight Gracie
05:30 PM Tom_L: thanks
07:20 PM lcnc-relay: <AllAboutJake@> More LED craziness sent as a pull request
07:25 PM Tom_L: did you see the latest?
07:27 PM Tom_L: shapes might be cool