#flex-dev Logs
Oct 29 2025
#flex-dev Calendar
04:20 AM Tom_L: morning
04:36 AM Tom_L: JT-Cave, there is a probe enable button, and i can add an led to it. can i have a single led tied to that signal so it shows on another page?
04:38 AM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/rpi5/Rpi5_touch_probe.png
04:38 AM Tom_L: bottom of the screen
05:02 AM JT-Cave: morning
07:05 AM rdtsc-w: morning, feeling better today Tom?
07:15 AM rdtsc-w: Curious Tom, what does the #!/bin/b shebang do in resources.sh? typically this is #!/bin/bash or #!/bin/env bash as a signal to the OS that it is a bash script
07:29 AM Tom_L: probably should be bash
07:31 AM Tom_L: seems to work either way
07:33 AM rdtsc-w: I think the OS is smart enough to detect that as a script either way. But try to open it in vim or nano and it won't highlight it as a bash script until correctly marked so - minor
07:34 AM Tom_L: i changed it
07:34 AM Tom_L: still consider myself a linux noob
07:41 AM Tom_L: PR ##78
07:45 AM rdtsc-w: https://en.wikipedia.org/wiki/Shebang_%28Unix%29 :)
07:51 AM rdtsc-w: still getting over a cold or whatever it was here... never lost sense of smell though, nor appetite so thankful it wasn't 'rona again
07:53 AM Tom_L: one of my boys had it recently and it was like a cold. no crazy symptoms
07:53 AM Tom_L: it was over in a couple days
07:55 AM Tom_L: they gave him some liquid medicine to take but i forget what it was for exactly
07:55 AM rdtsc-w: day 6 here; think body is just trying to clear all the leftover debris at this point
07:56 AM Tom_L: freeze watch tomorrow
07:57 AM rdtsc-w: saw a very interesting video about the safe level of radiation exposure - wasn't what I expected at all but made a very compelling argument: https://www.youtube.com/watch?v=gzdLdNRaPKc
08:04 AM Tom_L: JT-Cave, i'm not sure what's going on with that PR. it looks a bit different than normal here
08:04 AM Tom_L: fwiw
08:06 AM JT-Cave: odd
08:06 AM Tom_L: never seen it make my pull a part of it
08:18 AM JT-Cave: probe enable doesn't seem to work as a hal button which would make it easy to connect to hal leds...
08:18 AM * JT-Cave starts his chicken day
08:22 AM Tom_L: i wasn't sure if or how that could be done
08:24 AM Tom_L: can dynamic properties be shared between widgets?
08:24 AM Tom_L: doubtful...
08:29 AM Tom_L: http://paste.debian.net/1403405/
08:29 AM Tom_L: what AI had to say
08:30 AM Tom_L: sry for the long lines
08:33 AM Tom_L: http://paste.debian.net/1403406/
08:33 AM Tom_L: maybe a bit better
08:33 AM * rdtsc-w shudders at the sight of C++.... icky :)
08:37 AM Tom_L: for that to work you'd probably have to use the led on the button
08:57 AM JT-Shop: the button led is done in code so there's no signal
09:34 AM JT-Cave: a dynamic property actually does nothing at all
09:34 AM JT-Cave: the code looks for the dynamic property to do something with that widget
10:30 AM lcnc-relay: <roguish> good morning.... once again
10:31 AM lcnc-relay: <roguish> not freezing here, but in the 50's right now. forecast low 80's today. i'll believe it when I feel it....
12:30 PM Tom_L: JT-Cave, it was an interesting idea that could have opened up more options
12:43 PM JT-Cave: open what kind of options?
01:00 PM Tom_L: having leds assigned to those buttons or maybe others
01:00 PM Tom_L: if it were in fact handled in the stylesheet
01:10 PM JT-Shop: the stylesheet is not something you have access to in code
01:12 PM Tom_L: i know
01:14 PM Tom_L: i'm mostly just thinking out loud
01:15 PM Tom_L: what started me thinking about it was when i added mdi buttons to a couple different tabs that do the same thing. i know it's completely unrelated but it made me think
01:16 PM Tom_L: i have set xyz in the probe page and also in the jog page
01:16 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/rpi5/Rpi5_touch_jog.png
01:16 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/rpi5/Rpi5_touch_probe.png
01:17 PM Tom_L: i figured it would be handy in both
01:18 PM Tom_L: i need to work on that more but a nap is calling me
01:23 PM JT-Shop: keep thinking out loud
01:23 PM Tom_L: this is where i wish i knew the code end better
01:25 PM Tom_L: on this particular one since the button can have an led it made me wonder if you could share that dynamic property with the other widget
01:25 PM Tom_L: it wouldn't be something you could do in designer i doubt
01:30 PM JT-Shop: I'm not following what you're asking
01:30 PM Tom_L: hang on
01:30 PM JT-Shop: k
01:30 PM Tom_L: http://paste.debian.net/1403481/
01:31 PM Tom_L: maybe synchronize is a better word
01:32 PM Tom_L: reference to example code... there was none
01:35 PM Tom_L: chew on that while i sleep :)
01:44 PM JT-Shop: fbmp message Hi do you happy to go to jonesboro anytime soon?
01:45 PM JT-Shop: I want it but i cant go at of moment
01:45 PM JT-Shop: for a steel beam...
01:46 PM JT-Shop: hmm he is maybe chinese
01:47 PM JT-Shop: nope he is from vietnam
02:57 PM Tom_L: heh
03:54 PM rdtsc-w: have your google translate app handy :)
03:58 PM JT-Shop: at first I thought it was just a crap thing but it makes sense now that I know where he's from
04:26 PM Tom_L: did ^^ that one make any sense?
04:30 PM Tom_L: https://forum.qt.io/topic/143527/how-to-link-custom-widgets-to-model-data/2
04:30 PM Tom_L: https://stackoverflow.com/questions/46755141/python-synchronizing-two-qtreewidgets
04:30 PM Tom_L: maybe not the best examples
04:38 PM JT-Shop: https://github.com/jethornton/flexgui/blob/master/flexgui/src/libflexgui/led.py#L44
04:38 PM JT-Shop: the way the led works is to call that function with true or false to turn on/off the led
04:42 PM Tom_L: do you use signals anywhere?
04:42 PM JT-Shop: synchronizing data between two widgets is pretty simple you use the changed signal to update the other one
04:43 PM Tom_L: https://stackoverflow.com/questions/38195763/implementing-led-in-pyqt-designer
04:44 PM Tom_L: i'm in deep water with no life jacket with this stuff
04:45 PM JT-Shop: https://github.com/jethornton/flexgui/blob/master/flexgui/src/libflexgui/led.py
04:45 PM JT-Shop: the led classes use the pyqtProperty but I really don't understand the magic
04:45 PM Tom_L: well if you don't we're both in trouble
04:46 PM JT-Shop: it has getters and setters but I don't understand how it works so I tend to not use that
04:47 PM JT-Shop: qtpyvcp uses signals and slots all over
04:49 PM Tom_L: http://paste.debian.net/1403521/
04:50 PM JT-Shop: https://github.com/jethornton/flexgui/blob/master/flexgui/src/libflexgui/led.py#L52
04:54 PM Tom_L: http://paste.debian.net/1403526/
04:55 PM JT-Shop: how does the get and set functions know the name
04:55 PM JT-Shop: for example I use setled and your example uses set_my_value
04:55 PM JT-Shop: https://github.com/jethornton/flexgui/blob/master/flexgui/src/libflexgui/led.py#L44
04:56 PM Tom_L: http://paste.debian.net/1403527/
04:57 PM Tom_L: http://paste.debian.net/1403528/
04:57 PM JT-Shop: that makes sense now what is the decorator?
04:59 PM Tom_L: http://paste.debian.net/1403529/
04:59 PM Tom_L: from PyQt5.QtCore import QObject, pyqtProperty
05:00 PM Tom_L: http://paste.debian.net/1403530/
05:01 PM Tom_L: more..
05:02 PM JT-Shop: I'll have to study all that but it's making more sense to me now
05:02 PM Tom_L: http://paste.debian.net/1403531/
05:02 PM Tom_L: example
05:02 PM JT-Shop: for me I have to understand how it works
05:03 PM Tom_L: i marked them for 3 days
05:03 PM JT-Shop: I'll copy them in the morning
05:03 PM Tom_L: ok
05:03 PM Tom_L: phew
05:04 PM JT-Shop: the last one is a bit cornfusing
05:04 PM Tom_L: it will become clear as mud
05:05 PM Tom_L: say i want a pannel of led indicators for some process
05:05 PM Tom_L: kinda where my head was on this
05:05 PM JT-Shop: you can do that now with the hal leds
05:06 PM JT-Shop: or hal led labels
05:06 PM Tom_L: right
05:06 PM Tom_L: but i can't share them on different tabs
05:06 PM JT-Shop: you can have as many led labels as you want for the same thing
05:07 PM Tom_L: i was looking at your led button list
05:07 PM JT-Shop: leds and led labels are readers
05:07 PM Tom_L: not all of those will be on the same page
05:07 PM JT-Shop: the led buttons are special at the moment and my first attempt
05:07 PM Tom_L: i get it
05:08 PM Tom_L: how's the c3 arm project goin?
05:09 PM JT-Shop: still trying to get the probe enable to have a hal pin but maybe that's the wrong way dunno
05:09 PM Tom_L: ^^ plenty to cornfuse more
05:09 PM JT-Shop: need to finish up the right one, got a new spring in monday for the rear
05:10 PM JT-Shop: the machine shop is still a disaster area...
05:14 PM JT-Shop: I was so glad to finish splitting all the rounds before the rain started back up
05:18 PM Tom_L: yeah it's gonna turn cold here tomorrow
05:18 PM JT-Shop: not bad here but cold at night
05:19 PM Tom_L: probably gonna be an early night for me
05:19 PM Tom_L: didn't sleep much last night
05:19 PM Tom_L: freeze warning here
05:19 PM JT-Shop: won't be long for me
05:19 PM JT-Shop: not that cold here
05:20 PM Tom_L: the wind is the killer here
05:20 PM Tom_L: shows 35 for the overnite low.. who knows
05:21 PM Tom_L: at least i'm caught up from all the hail claims etc
05:21 PM Tom_L: kinda all hit at once with this procedure etc
05:21 PM JT-Shop: still waiting for the roofer for the house in stringtown
05:22 PM Tom_L: let the ins pay for it and dumped them for another company
05:22 PM JT-Shop: did they raise your rate?
05:22 PM Tom_L: i think they wanted us to leave.. they're dumping that brand in 2026
05:22 PM Tom_L: 5.3k
05:23 PM Tom_L: got it now for 1.6k
05:24 PM Tom_L: and i got a vehicle discount as well
05:24 PM Tom_L: been with the auto one since i was 16
05:25 PM Tom_L: the local broker was useless too
05:25 PM JT-Shop: I've used state farm since I started having car insurance
05:25 PM Tom_L: same here
05:26 PM Tom_L: got a nice check back for the vehicles by adding the property
05:27 PM JT-Shop: the C3 is less than $100 for 6 months... the C8 is a lot more
05:27 PM Tom_L: yeah i bet :)
05:28 PM Tom_L: i keep good ins on the vehicles
05:29 PM Tom_L: been thru 3-4 winshields in the past 3-4 yrs
05:29 PM JT-Shop: I have replacement cost on the houses so you get 100%
05:29 PM Tom_L: same here
05:29 PM Tom_L: + 20%
05:29 PM JT-Shop: the house in stringtown total is about 25k
05:30 PM Tom_L: 2nd house or a getaway place?
05:31 PM JT-Shop: I built it for Dad and now I have a friend that is buying it
05:31 PM Tom_L: that's good it's someone you know
05:33 PM Tom_L: ok i smell dinner
05:33 PM JT-Shop: he came back from Iraq and I gave him a lower price to rent it than I advertised just as an appreciation for his service
05:33 PM JT-Shop: then I gave him a killer deal to buy it
05:34 PM Tom_L: my niece's x is deployed in poland atm
05:34 PM Tom_L: he facetimes the girls once in a while
05:39 PM JT-Shop: he only has 5 more years to be paid off
05:56 PM Tom_L: that's always a good feeling
05:59 PM JT-Shop: yup
05:59 PM * JT-Shop calls it a day