#flex-dev Logs
Nov 16 2025
#flex-dev Calendar
10:46 AM JT-Shop: did you see the two screen shots
10:47 AM Tom_L: yeah
10:48 AM Tom_rpi5: mine don't have extra text in the ui
10:48 AM Tom_rpi5: maybe that's it
10:50 AM JT-Shop: when you toggle the estop closed it has the pushed look
10:50 AM JT-Shop: when you toggle the estop open it has the not pushed look
10:50 AM JT-Shop: because it's a checable button
10:50 AM JT-Shop: checkable
10:51 AM * JT-Shop goes to paint the bearing housing
10:52 AM Tom_rpi5: didn't change here
10:52 AM Tom_rpi5: do i need something special in the qss file?
10:54 AM JT-Shop: no qss needed
10:54 AM JT-Shop: but if you have qss it would override anything in the program
10:54 AM Tom_rpi5: i enabled checkable and didn't notice a difference
10:54 AM JT-Shop: no don't enable checkable that is done in code
10:55 AM Tom_rpi5: it was your blue touch qss i changed colors in
10:55 AM Tom_rpi5: ok
10:56 AM Tom_rpi5: ok it 'indents' in touch-probe3 but not tp3-touch
10:57 AM Tom_rpi5: and power does not in either one
10:58 AM JT-Shop: I only did estop to test the code change
10:59 AM JT-Shop: the reason tp3 does not change is because you have the border style in the qss file
11:00 AM Tom_rpi5: ok
11:00 AM Tom_rpi5: well it seems to work ok in touch-probe3
11:00 AM JT-Shop: the qss has the last say
11:01 AM JT-Shop: the qss in touch p 3 is commented out
11:01 AM Tom_rpi5: border-style: outset; ?
11:01 AM JT-Shop: https://paste.debian.net/1408949/
11:02 AM JT-Shop: you have default border-style and pressed border-style
11:02 AM JT-Shop: if you want to use the checked state you need to add that
11:03 AM Tom_rpi5: https://paste.debian.net/1408950/
11:03 AM JT-Shop: I bet if you press and hold the estop button in tp3 it will shoe inset until you release it
11:03 AM Tom_rpi5: from the touch one
11:03 AM Tom_rpi5: it does
11:04 AM JT-Shop: https://paste.debian.net/1408951/
11:04 AM Tom_rpi5: so i need one for checked too?
11:04 AM JT-Shop: touch-probe-3.ini
11:04 AM JT-Shop: or nothing
11:04 AM * JT-Shop goes to spray the top coat on the bearing housing in the wind
11:05 AM Tom_rpi5: ok it works now
11:05 AM Tom_rpi5: just copied from tp3
11:10 AM JT-Shop: nap time here
11:10 AM Tom_rpi5: i'll push that qss to the examples
11:13 AM Tom_rpi5: PR #404 for qss
11:20 AM Tom_L: looks like probe enable is checkable already
11:23 AM lcnc-relay: <AllAboutJake@> JT-Shop: I also want to figure out how to and a blinking stop state and I think this checkable might be a step to making a sane way of doing that.
11:25 AM lcnc-relay: <AllAboutJake@> I just have a hard time differentiating estop states at a glance. Does bright red mean it’s on? Off? I can never remember. But blinking is obviously open (It’s a jake problem really)
11:31 AM xxcoder: its important to make things work for you
11:31 AM Tom_L: green is enabled
11:32 AM JT-Cave: well you can set the text
11:33 AM JT-Cave: https://pasteboard.co/xOijG9ZHND71.png
11:33 AM JT-Cave: https://pasteboard.co/J5x5XSzygDqE.png
11:34 AM JT-Cave: https://pasteboard.co/MoBXwwZByP9b.png
11:34 AM JT-Cave: https://paste.debian.net/1408954/
11:34 AM Tom_L: yer havin too much fun with it
11:35 AM JT-Cave: it's jakes fault
11:35 AM JT-Cave: now it's really time for a nap
11:35 AM Tom_L: and i don't mind blaming him
11:35 AM JT-Cave: lol
11:35 AM xxcoder: lol
11:35 AM Tom_L: i'm all about a nap
11:35 AM Tom_L: i think i got things caught up on my end
11:36 AM Tom_L: touch pushed in inch & metric & metric subs tested
11:36 AM JT-Cave: also note the buttons have a fixed height with the minimum set to make them taller
11:36 AM * Tom_L thinks about 3d glasses effect
11:37 AM Tom_L: ^^ unless you find a mistook
11:38 AM Tom_L: i did run an inch gcode file in the metric config but i wouldn't recomend it
11:42 AM lcnc-relay: <AllAboutJake@> haha yea I'm a pain in the behind.
01:42 PM * JT-Cave goes to hide in the machine shop
01:53 PM * rdtsc was the original pain-in-the-behind, but too many side-project and honey-do-lists has all but kept me sequestered
02:15 PM Tom_L: JT-Shop, if you pull my edit in i can pull and build
02:16 PM JT-Shop: ok
02:17 PM Tom_L: finally had to change the battery in my shop mill moue
02:17 PM Tom_L: mouse
02:19 PM Tom_L: thanks. pr on the way
02:20 PM JT-Cave: AFAIK there is no unchecked state for a qpushbutton
02:20 PM Tom_L: PR #405 for deb
02:21 PM JT-Cave: only hover, pressed, disabled, focus, checked
02:22 PM Tom_L: i saw that in the touch-probe3 qss
02:22 PM Tom_L: not sure the origin
02:23 PM JT-Cave: When multiple rules apply, QSS follows specificity rules similar to CSS. More specific selectors (e.g., those with pseudo-states or object names) take precedence. If specificity is equal, the last rule defined in the stylesheet takes precedence.
02:23 PM JT-Cave: that's interesting
02:23 PM JT-Cave: and if you forget a ; the rest of the qss is skipped
02:24 PM Tom_L: setChecked() false
02:24 PM Tom_L: setChecked(false)
02:24 PM Tom_L: yeah i've noticed that order matters
02:25 PM lcnc-relay: <AllAboutJake@> https://doc.qt.io/qt-6/stylesheet-reference.html#list-of-pseudo-states
02:25 PM Tom_L: i would imagine ^^ would be the default state anyway
02:26 PM lcnc-relay: <AllAboutJake@> unchecked is there, but I was banging my head against the wall wondering why it didn't work, and when I gave up on it, then it started working
02:26 PM lcnc-relay: <AllAboutJake@> to be clear, stopped using 'unchcked' and doing it another way stated working
02:26 PM * Tom_L needs a shower after working in the yard
02:28 PM Tom_L: it behaves the same with unchecked commented out in the qss
02:29 PM Tom_L: eventually i'll remove it unless someone sees a reason not to
02:29 PM JT-Cave: there is an unchecked but it may not apply to the qpushbutton
02:29 PM JT-Cave: it may be only for a checkbox
02:30 PM * JT-Cave heads back to the machine shop
02:30 PM lcnc-relay: <AllAboutJake@> "QPushButton#estop_pb:!checked"
02:31 PM Tom_L: i comment colors out in the ini and i lost my pwr & estop colors
02:31 PM Tom_L: there are colors in the style sheet
02:32 PM JT-Cave: could be an error in the stylesheet
02:32 PM Tom_L: err .ui file rather
02:32 PM Tom_L: oh, those are for the led
02:32 PM JT-Cave: I see I have one example to fix
02:32 PM Tom_L: so where do i define those colors now?
02:33 PM Tom_L: in the qss?
02:33 PM JT-Cave: the other three are your
02:33 PM JT-Cave: yup
02:33 PM Tom_L: what is broke now?
02:33 PM JT-Cave: they still work from the ini until the next version
02:33 PM JT-Cave: the colors in the ini files, I grepped and saw them in tp3 and touch3
02:33 PM JT-Cave: and touch3 metric
02:33 PM Tom_L: yeah they are
02:34 PM JT-Cave: it's not broken but you get the message
02:34 PM Tom_L: how rude!
02:34 PM Tom_L: so where in the qss?
02:36 PM JT-Shop: https://gnipsel.com/linuxcnc/flexgui/style.html#controls
02:37 PM JT-Shop: you did get 4 messages but I reduced that down to one :)
02:40 PM lcnc-relay: <AllAboutJake@> power_pb is still not checkable, right?
02:43 PM JT-Shop: no the power button is checkable
02:44 PM JT-Shop: https://gnipsel.com/linuxcnc/flexgui/style.html#controls
02:49 PM Tom_L: can you use rgba there?
02:49 PM lcnc-relay: <AllAboutJake@> I think you were a few commits ahead of the copy I had locally
02:49 PM JT-Shop: in the stylesheet?
02:50 PM JT-Shop: Colors can also be defined using the rgb() or rgba() functions, specifying the red, green, blue, and optionally alpha components as integers (0-255) or percentages.
02:50 PM JT-Shop: Colors can be specified using hexadecimal RGB or ARGB (alpha-red-green-blue) values.
02:50 PM JT-Shop: RGB: #RRGGBB (e.g., #FF0000 for red)
02:50 PM JT-Shop: ARGB: #AARRGGBB (e.g., #80FF0000 for semi-transparent red)
02:50 PM Tom_L: yes
02:50 PM JT-Shop: QSS supports a set of predefined color names, following the SVG color names specification. Examples include red, blue, green, yellow, white, black, darkRed, lightGray, etc.
02:50 PM Tom_L: must be the format
02:50 PM JT-Shop: background-color: rgb(240, 240, 240);
02:51 PM JT-Shop: ackground-color: #FFC0CB; /* Pink */
02:51 PM Tom_L: been a while...
02:51 PM JT-Shop: background-color: yellow;
02:56 PM Tom_L: ok i think i got it
02:59 PM Tom_L: where do estop and power leds get their color from?
03:00 PM Tom_L: not the ui... same settings and one comes back yellow and the other green
03:06 PM JT-Shop: https://gnipsel.com/linuxcnc/flexgui/controls.html#led-buttons
03:06 PM JT-Shop: https://gnipsel.com/linuxcnc/flexgui/ini.html#flexgui
03:07 PM JT-Shop: damn missed a bit in the docs
03:07 PM JT-Shop: anyway you can set led defaults in the ini or set them as a dynamic property in each led button
03:08 PM lcnc-relay: <roguish> JT, your docs are pretty good
03:13 PM JT-Shop: thanks
03:13 PM * JT-Shop gets a sip of his beer then paints the trailing arm
03:19 PM JT-Shop: yay the trailing arm is primed... last part to paint
03:20 PM Tom_L: the dynamic property doesn't seem to be working
03:21 PM JT-Shop: which dynamic property on what?
03:23 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/led_dynamic_property.png
03:23 PM Tom_L: estop on that one
03:24 PM Tom_L: both estop and power dynamic property colors are set the same
03:24 PM Tom_L: i think you had defaults in code for those at one point
03:25 PM Tom_L: quite a few moons ago
03:25 PM JT-Shop: if no colors are specified then the defaults are used, I just ran it here and the power is yellow
03:27 PM lcnc-relay: <AllAboutJake@> Alright, here's where you vote me off the island:
03:27 PM lcnc-relay: https://github.com/jethornton/flexgui/pull/406
03:27 PM JT-Shop: but estop is green when on
03:28 PM lcnc-relay: <AllAboutJake@> if you have an INI setting does that still override?
03:29 PM JT-Shop: it should be a default setting, or if a valid ini is there use that or if it's a dynamic property use that
03:31 PM Tom_L: yes but by the dynamic property estop should be yellow
03:32 PM JT-Shop: yes, I'll have to check that out
03:32 PM Tom_L: settings are coming from too many sources maybe
03:47 PM JT-Shop: might be an indention error
03:47 PM Tom_L: probably
03:47 PM * JT-Shop goes to spray the black paint
03:47 PM Tom_L: no runs, no drips, no errors
03:48 PM JT-Shop: the dynamic properties are not named correctly
03:49 PM JT-Shop: https://gnipsel.com/linuxcnc/flexgui/controls.html#led-buttons
03:53 PM Tom_L: yeah i think there were a couple odd ones that probably got changed
03:54 PM JT-Shop: when I moved those to the flexgui section they needed to be more specific naming
03:58 PM Tom_L: i missed renaming the one on estop
03:58 PM JT-Shop: it had me going for a bit :)
03:58 PM Tom_L: me too
03:59 PM Tom_L: it's been that way for ages i just never bothered with it
03:59 PM JT-Shop: it's been that way since the start of led buttons I'd bet
03:59 PM Tom_L: so the qss & led colors need pushed
03:59 PM Tom_L: i'll see how far i get
04:00 PM Tom_L: i don't doubt that a bit
04:00 PM JT-Shop: your changes need pushed?
04:00 PM Tom_L: once i make them yes
04:00 PM JT-Shop: ok, sounds good
04:00 PM Tom_L: fix the ini colors & dynamic properties
04:07 PM JT-Shop: next is Wynken, Blynken, and Nod
04:14 PM JT-Shop: when the dust settles I'll look at the probe enable button
04:44 PM Tom_L: ok about to push
04:50 PM JT-Shop: cool
04:50 PM * JT-Shop is relaxing
04:57 PM Tom_L: PR #407 button colors
04:57 PM JT-Shop: cool
04:57 PM Tom_L: i think i got em all
04:58 PM JT-Shop: I'll pull in the am
04:58 PM Tom_L: ok
04:58 PM Tom_L: then i'll build a deb
04:59 PM JT-Shop: ok
04:59 PM Tom_L: i think i'm caught up until you change something
05:00 PM JT-Shop: I like the checkable buttons for estop and power they give you a lot more ways to style them
05:00 PM Tom_L: jake should like that
05:01 PM Tom_L: i got another one of those cases comin for my 2nd rpi5
05:01 PM Tom_L: wanted to see if it worked first
05:02 PM Tom_L: one day i'm sure i'll have to retire the d525 on the mill
05:02 PM JT-Shop: mine all died
05:02 PM Tom_L: i'll put a pi5 out there then
05:03 PM Tom_L: on a 7i80
05:03 PM Tom_L: drop in replacement for the 7i90
05:03 PM Tom_L: only ethernet
05:03 PM Tom_L: already have the config set
05:04 PM Tom_L: kinda likin this little touch monitor
05:06 PM * JT-Shop calls it a night
06:38 PM lcnc-relay: <AllAboutJake@> It's only 7:30 here but I think its time to wind down for the weekend and get ready for a work week.
06:39 PM lcnc-relay: <AllAboutJake@> https://jauriarts.org/_heisenbridge/media/jauriarts.org/MUgYLFRVZhucVuMQQdHITJgA/rGuFUO8xKzk/buttons2.gif
06:39 PM lcnc-relay: <AllAboutJake@> I checked in my latest stuff into my private repo, which Tom and JT should have received an invite to if you need test cases.
06:40 PM Tom_L: making progress
06:43 PM lcnc-relay: <AllAboutJake@> Yeah. The flash stuff may not pass JT’s muster but I think it’s nice 🙂
06:44 PM xxcoder: not bad look