#flex-dev Logs
Nov 08 2025
#flex-dev Calendar
04:27 AM Tom_L: morning
04:29 AM Tom_L: 46F - 63F
04:40 AM JT-Cave: mrnngs
04:41 AM JT-Cave: 46°F - 71°F
04:47 AM Tom_L: getting close to done on the ui i think
04:47 AM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/rpi5/
04:47 AM Tom_L: once i test it good, you want it in the examples?
04:52 AM JT-Cave: yup
04:55 AM Tom_L: i could add it to touch-probe3 and show the ini changes in a 'touch readme' or make it's own folder. which would be best?
04:55 AM Tom_L: probably keep it separate
04:56 AM Tom_L: gonna get into the 20's here tuesday
04:57 AM Tom_L: .. Monday
05:39 AM JT-Cave: separate would be best
05:46 AM rdtsc: 𐑥𐑹𐑯𐑦𐑙
07:12 AM JT-Cave: going through all the hal startup code and fixing a bunch of error messages and tests
07:41 AM JT-Cave: crap now I've broken it
07:55 AM Tom_L: ... if it ain't broke....
08:15 AM JT-Cave: well it ain't broke now...
08:15 AM JT-Cave: more work later but finally fingered out why a led would fail if missing one dp
08:23 AM Tom_L: was my issue in this fix?
08:23 AM Tom_L: building..
08:27 AM Tom_L: PR #386
08:27 AM Tom_L: nope..
08:33 AM lcnc-relay: <AllAboutJake@> OK so I have to admit, that making my own UI is more fun than I expected. I was in the "just download something that works" camp until now. But its going to take some time and polish.
08:33 AM lcnc-relay: <AllAboutJake@> https://jauriarts.org/_heisenbridge/media/jauriarts.org/BSpVAecvpFwmvHlkWZVOJQae/oMM6DgwxK-A/simplescreenrecorder-2025-11-08_09.31.17.mp4
08:34 AM JT-Cave: Tom_L, how did you trigger that error?
08:40 AM Tom_L: start the app and go straight to the qdoublespinbox and click on one with the mouse.
08:40 AM Tom_L: no power, no estop, no nuthin
08:41 AM Tom_L: without the dynamic property those widgets are disabled
08:41 AM Tom_L: until power on, estop and homed
08:41 AM Tom_L: one of the probe settings or ops settings qdoublespinbox
08:43 AM Tom_L: jake, that's the point of flex
08:43 AM Tom_L: you can do it your way
08:44 AM JT-Cave: you have a input keyboard on a dbl spinbox?
08:44 AM Tom_L: yes
08:44 AM Tom_L: keypad
08:44 AM Tom_L: dynamic propert: input number
08:44 AM Tom_L: the latest ui is on my server
08:45 AM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/rpi5/GUI/
08:47 AM JT-Cave: the error says keyboard it's a set_var with a number for input?
08:57 AM Tom_L: it is a numeric set_var
08:57 AM JT-Cave: anyway it was an indentation error
08:57 AM JT-Cave: was being the key word :)
08:57 AM Tom_L: tried to make it an easy one... it is the weekend
08:58 AM Tom_L: i'll check it here in a bit
08:59 AM JT-Cave: jake I'm doing some rework in the startup.py hal section so when I'm done are you planning on doing a PR or do you just want me to incorporate your code?
09:00 AM Tom_L: did he figure out the led thing i was pestering about?
09:00 AM Tom_L: i didn't quite follow all his stuff
09:03 AM Tom_L: PR #387
09:03 AM Tom_L: much better! thanks
09:33 AM JT-Cave: yup that was a bug for sure
09:33 AM JT-Cave: what were you pestering him about?
09:34 AM Tom_L: having a single led change in sync with the probe enable button led
09:34 AM Tom_L: so i can have an led indicator on the probe page
09:34 AM Tom_L: the button is on the main tab
09:37 AM Tom_L: ok i'm gonna fix up an example folder and push this in a bit
09:38 AM JT-Cave: I just finished improving the test to pin_name for hal objects
09:38 AM JT-Cave: I'll save the rest for tomorrow
09:39 AM Tom_L: need another build before i start this?
09:42 AM Tom_L: i'll try to include that when i push the example
09:42 AM Tom_L: the deb
09:45 AM JT-Cave: yup
09:46 AM lcnc-relay: <AllAboutJake@> So LEDs and Labels no longer need a hal_dir propery (assumed) and LEDs no longer need a type because hal_bit is assumed?
09:48 AM JT-Shop: yup the only dir, type dynamic properties needed are the ones that you have to make a choice for
09:48 AM JT-Shop: so for a slider you have to pick u32 or s32 but for a button it's always a bit
09:48 AM lcnc-relay: <AllAboutJake@> ok. I'm sending you a pull request for your consideration shortly. (Took some merging because you move fast hehe)
09:49 AM JT-Shop: so no point in making users type that in
09:49 AM Tom_L: do i need to remove them from the ui?
09:49 AM JT-Shop: they are just not used any more but I'm still working on hal io
09:49 AM Tom_L: should i wait on mine for his pr?
09:50 AM Tom_L: i'll work on mine locally and wait til the coast is clear to push it
09:52 AM lcnc-relay: <AllAboutJake@> Sent. This is my allow re-use of hal pins on multiple HAL leds and labels.
09:56 AM lcnc-relay: <AllAboutJake@> The same pattern may be extendable to other widget types, but I didn't want to get too fancy.
10:14 AM JT-Cave: well lets see what gitgui says
10:17 AM JT-Cave: https://pasteboard.co/nIkw1xbtcmAx.png
10:19 AM JT-Cave: jake you forgot to change the docs :)
10:19 AM Tom_L: i'm ready as soon as i get the goahead
10:20 AM JT-Cave: I'm done, I just pushed a little
10:20 AM * JT-Cave goes to clean shicken chit
10:20 AM Tom_L: i'll pull that and add mine then push it back
10:23 AM lcnc-relay: <AllAboutJake@> JT-Cave: Hah. Sorry. I didn’t realize the fact that one pin only was in the docs. Thought it was a minor change.
10:23 AM lcnc-relay: <AllAboutJake@> https://tenor.com/view/one-ping-only-please-sean-connery-hunt-for-red-october-cod-call-of-duty-gif-11722801771968362916
10:24 AM xxcoder: so glad gifs work across bridge now. it used to be not the case, all links would be 404
10:24 AM lcnc-relay: <AllAboutJake@> I have some drywall work to do but I can send a doc update later
10:30 AM Tom_L: JT-Cave, PR #389 example & deb
10:31 AM JT-Shop: thanks
10:32 AM Tom_L: the deb _should_ have the example
10:58 AM JT-Cave: it's also in the repo
10:58 AM * JT-Cave notes that it's nap time
11:01 AM Tom_L: niece is takin us out for steak for lunch
11:39 AM JT-Shop: nice
11:43 AM Tom_L: something fishy is goin on with button leds
11:43 AM Tom_L: lemme get a screen shot to start this
11:45 AM lcnc-relay: <AllAboutJake@> Maybe I broke something?
11:49 AM Tom_L: i think you did
11:50 AM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/bugs/
11:50 AM Tom_L: pic worth 1k words
11:50 AM Tom_L: 2 settings pages with 2 result pages
11:50 AM Tom_L: power button disappears
11:51 AM Tom_L: led_indicator checked and unchecked
11:52 AM Tom_L: does the same thing with e-stop etc
11:53 AM Tom_L: check the box and the button disappears
11:53 AM Tom_L: mmm gettin close to steak time
11:55 AM Tom_L: i'll check in later on it
12:47 PM lcnc-relay: <AllAboutJake@> Have a hard time loading your no-ip
12:48 PM lcnc-relay: <AllAboutJake@> let me put a led button into the mix and see if I can reproduct
01:17 PM lcnc-relay: <AllAboutJake@> Can do some cool stuff with the fact that buttons can also trigger changes on stacked widgets:
01:17 PM lcnc-relay: <AllAboutJake@> https://jauriarts.org/_heisenbridge/media/jauriarts.org/VqiUFYOTaLxarqNGnLOcHAGp/oA8u6DNHOf0/simplescreenrecorder-2025-11-08_14.16.39.mp4
01:52 PM Tom_L: allaboutjake, if you have the dynamic property: led_indicator checked now, the button disappears from the screen
01:52 PM Tom_L: unchecked the button is there
01:53 PM Tom_L: tested Estop and Power buttons and they both behave the same way
01:57 PM JT-Mobile: Yp
01:59 PM Tom_L: yup
02:00 PM Tom_L: not sure if you saw or not but led buttons are broke
02:02 PM JT-Mobile: Are you sure it was jake?
02:02 PM Tom_L: i'm sure it wasn't me :)
02:02 PM Tom_L: i posted 4 pics
02:03 PM Tom_L: showing checked and unchecked state of led_indicator dynamic property
02:03 PM lcnc-relay: <AllAboutJake@> led indicator on my estop and power buttons seems to be working.
02:03 PM Tom_L: the button completely disappears if checked
02:03 PM lcnc-relay: <AllAboutJake@> I'm fighting with the resource builder right now, but I did look and I can't reproduce.
02:04 PM JT-Mobile: I did a brief look and they worked for me
02:04 PM Tom_L: didn't know if you were able to see the images
02:04 PM Tom_L: i'll try a non touch gui and see
02:05 PM lcnc-relay: <AllAboutJake@> for me, the resource builder seems to ignore the config directory setting and plops things in the images directory, and the resulting in a resources.py file that doesn't work right at runtime
02:06 PM lcnc-relay: <AllAboutJake@> doin sometihng wrong:
02:06 PM lcnc-relay: Could not create pixmap from :images/Lx_out.png
02:06 PM lcnc-relay: Could not create pixmap from :images/angleY-flip.png
02:06 PM lcnc-relay: Could not create pixmap from :images/angleY-flip.png
02:06 PM lcnc-relay: ... long message truncated: https://jauriarts.org/_heisenbridge/media/jauriarts.org/hwcvfodlScJFxThkzMMLnhCm/5ATi66O6BwU (6 lines)
02:07 PM Tom_L: yeah i have a script that helps. not all rcc are created equal
02:07 PM Tom_L: only the one from pyside works
02:07 PM Tom_L: for python
02:07 PM JT-Mobile: JT is eating dinner
02:07 PM lcnc-relay: <AllAboutJake@> ok yeah the gui tool is making the resource.py and putting it int he right place, but it doesn't work at runtime for me
02:08 PM Tom_L: you can't see my site right?
02:09 PM lcnc-relay: <AllAboutJake@> yeah it kind of just stalls and never loads for me.
02:09 PM Tom_L: http://paste.debian.net/1405201/
02:09 PM Tom_L: try that
02:10 PM Tom_L: you need to install pyside in a virtual env
02:10 PM Tom_L: then the sed line changes the pyside6 line in the file to pyqt6
02:10 PM Tom_L: then it works
02:10 PM JT-Mobile: For the rp
02:10 PM JT-Mobile: Rpi?
02:11 PM Tom_L: any
02:11 PM Tom_L: afik
02:11 PM Tom_L: i tried other rcc and they generate c++
02:11 PM Tom_L: has to be from pyside
02:12 PM Tom_L: that was the only one i found to work. i'd lost my install of the working one so i had to figure it out again
02:13 PM Tom_L: somebody else was having the same problem recently
02:13 PM Tom_L: got screwed out of a steak... they decided on carlos o'kelleys
02:14 PM Tom_L: btw, a non touch gui works as expected
02:15 PM JT-Mobile: Beer cheese soup then steak and shrimp
02:15 PM lcnc-relay: <AllAboutJake@> where is the qrc file supposed to live. the gui thingy puts it in "images"
02:15 PM Tom_L: in the config folder
02:15 PM Tom_L: try the script
02:16 PM Tom_L: that's where i put mine anyway
02:16 PM JT-Mobile: In the images dir iirc
02:16 PM lcnc-relay: <AllAboutJake@> the script doesn't make the qrc though
02:16 PM Tom_L: no you build that from the designer
02:18 PM lcnc-relay: <AllAboutJake@> oh, whats the Flex REsource BUilder for then? I thought that took the images and made the qrc
02:18 PM Tom_L: it makes the py file
02:18 PM Tom_L: afik
02:18 PM Tom_L: it's been a while since i looked at it
02:19 PM JT-Mobile: The only file needed to display images is the resources.py file
02:22 PM JT-Mobile: Are you using the flex resource tool?
02:23 PM lcnc-relay: <AllAboutJake@> yes. the flex tool makes the .qrc in the images directory, and the resource.py as well. but then when I load it runtime I get all the errors that the images are not found
02:23 PM lcnc-relay: <AllAboutJake@> Could not create pixmap from :images/Lx_in.png
02:23 PM lcnc-relay: Could not create pixmap from :images/Lx_in.png
02:23 PM lcnc-relay: Could not create pixmap from :images/Ly_out.png
02:23 PM lcnc-relay: Could not create pixmap from :images/Ly_out.png
02:23 PM lcnc-relay: ... long message truncated: https://jauriarts.org/_heisenbridge/media/jauriarts.org/gIwAskwBeYOMEFaXPQCRJQbd/L2Xl239X2Hg (6 lines)
02:23 PM lcnc-relay: <AllAboutJake@> etc
02:24 PM Tom_L: i may have to go but if you don't get it i'll help later on
02:24 PM JT-Mobile: I'm on my phone so can't see links
02:25 PM Tom_L: JT-Mobile, does the tool build the qrc file too?
02:25 PM JT-Mobile: I'm most active in the morning
02:25 PM JT-Mobile: Yes
02:25 PM Tom_L: ok
02:25 PM Tom_L: you may need to move the .py file to the config folder, i'm not sure how he has his set up
02:25 PM JT-Mobile: I see you still define a qrc file on designer
02:26 PM Tom_L: i do
02:26 PM Tom_L: i've been using the old ones i had from the start
02:26 PM JT-Mobile: You pick where you want the resources.py to go
02:26 PM Tom_L: probably pre tool era :)
02:27 PM JT-Mobile: No need to fo that it makes the example not portable
02:29 PM Tom_L: anyway, i'll bbl
02:29 PM Tom_L: that button led thing only seems to appear on a touch gui
02:41 PM JT-Mobile: It might have been something I did
02:50 PM JT-Mobile: JT heads to the barn
02:57 PM lcnc-relay: <AllAboutJake@> I wound up:
02:57 PM lcnc-relay: - editing the resources.qrc file to prefix every file with "images/"
02:57 PM lcnc-relay: - move it to the config directory
02:57 PM lcnc-relay: - used Tom's script to make the py
03:01 PM lcnc-relay: <AllAboutJake@> a lot of work for something silly:
03:01 PM lcnc-relay: <AllAboutJake@> https://jauriarts.org/_heisenbridge/media/jauriarts.org/GfaDubQyczgwGMFmflMYsCoC/kKkFfrR0qgY/image.png
03:13 PM lcnc-relay: <AllAboutJake@> just out of curiosity, why did you move the css stuff out of designer, seems like it would be nice to see it all in the designer?
04:06 PM * JT-Shop assumes jake is asking Tom_L
04:11 PM * Tom_L seems a little lost too
04:24 PM lcnc-relay: <AllAboutJake@> Sorry I thought I read that old versions did qrc in designer. I wasn’t sure why it’s a separate resource tool now. maybe I misunderstand. I was playing with designer and doing qss right in designer which seemed nice to rather than manually editing a separate file
04:26 PM JT-Shop: you can do qss and qrc in designer but it seemed easier to add images using my tool
04:26 PM JT-Shop: and having the stylesheet as a file it's easier to find everything in designer you have to hunt for it
04:27 PM JT-Shop: old versions of what?
04:28 PM lcnc-relay: <AllAboutJake@> Tom_L: Tom said “old versions from the start”
04:29 PM lcnc-relay: <AllAboutJake@> Er “old ones”
04:29 PM JT-Shop: ah I think he was adding qrc to older examples
04:29 PM lcnc-relay: <AllAboutJake@> I guess I thought he had versions that were using designer. Sorry for the confusion
04:30 PM JT-Shop: it was not straight forward so I coded up a tool
04:31 PM JT-Shop: adding a resource file to designer also makes it no portable because it seems to get lost
04:32 PM JT-Shop: fro example open th eui file from this link http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/rpi5/GUI/
04:50 PM lcnc-relay: <AllAboutJake@> A minor bug report. When you enter editing a QTextLine like for touch off, it should temporarily disable keyboard jog as you might use the arrows in the course of editing
04:51 PM lcnc-relay: <AllAboutJake@> Also it would be cool if enter would work to accept the value
04:54 PM JT-Shop: enter is not on a touch screen
04:55 PM JT-Shop: or I assume you're using a touchscreen popup
05:00 PM * JT-Shop calls it a night
05:01 PM lcnc-relay: <AllAboutJake@> Yeah kinda both. Haven’t tried the touch pop up stuff yet
05:02 PM JT-Shop: so interesting to block keyboard jog when a qlineedit has focus but where does it stop because sometimes the screen has focus on the only thing there and it might be a qlineedie
05:02 PM JT-Shop: qlineeidt
05:03 PM JT-Shop: qlineedit
05:05 PM lcnc-relay: <AllAboutJake@> Yeah interesting. Maybe it’s not so simple. Hehe
05:06 PM lcnc-relay: <AllAboutJake@> I just noticed though when I was trying to move the decimal point and couldn’t.
06:41 PM Tom_L: JT-Shop, fwiw, i don't think jake can see my server
06:42 PM lcnc-relay: <AllAboutJake@> I dunno why. Maybe my dns server black holes it for some reason. I have to look more closely
06:54 PM Tom_L: try port 81 instead of 443
06:54 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/JT-SHOP/flexgui/rpi5/GUI/
06:54 PM Tom_L: i have them both open to it
08:35 PM lcnc-relay_ is now known as lcnc-relay
09:21 PM Tom_L: double checked the 2 examples: touch-probe3 and tp3-touch and touch-probe3 behaves normal but with tp3-touch the estop or power button disappears when the dynamic property input number is checked
09:21 PM Tom_L: so it has something to do with the touch part