#flex-dev Logs
Aug 21 2025
#flex-dev Calendar
04:32 AM Tom_L: morning
04:39 AM Tom_L: 69-90F
05:05 AM JT-Cave: morning
06:52 AM JT-MShop: 68-88F
10:23 AM Tom_L: good riding weather
10:28 AM Tom_L: is flexgui2 your test repo for kbd?
10:31 AM Tom_L: ...looks that way
11:01 AM JT-Cave: yup
11:04 AM lcnc-relay: <roguish> good morning...... yesterday topped at 98. forecast today 101
11:04 AM lcnc-relay: <roguish> toasty
11:05 AM lcnc-relay: <roguish> very nice, but tough, 33.5 mile ride yesterday with my gal cycling friend
11:25 AM lcnc-relay: <roguish> 9 oclock, and up to 80 already
11:37 AM rdtsc-w: 70 here today, cooling off
11:49 AM JT-Cave: Tom_L, add a label named key_lb and test out flexgui2
11:55 AM Tom_L: with any example?
11:56 AM lcnc-relay: <roguish> ok, time for a short stretch out ride..... bbl
12:01 PM Tom_L: JT-Cave, added one to touch-probe3 example and i get TextLabel
12:01 PM Tom_L: shows flex 2.0.0
12:01 PM Tom_L: at the top
12:07 PM Tom_L: using the test repo you made
02:48 PM rdtsc is now known as rdtsc-w
03:18 PM JT-Cave: for some reason yet unknown to me I can't capture the right/left arrow key events totally
03:59 PM rdtsc-w: perhaps they are considered "needed by the system" so branch off to your app and thus cannot be totally consumed
04:01 PM JT-Shop: I sure I don't understand what you just said...
04:03 PM JT-Shop: everything happens inside the qt event loop
04:04 PM JT-Shop: the only thing I can think of is emc causes a bit of a pause in qt and then qt "thinks" it's a new key stroke instead of an auto repeat
04:06 PM JT-Shop: I might need a semaphore flag
04:07 PM rdtsc-w: unsure, but consider this: left and right arrows are needed system-wide for editing text. perhaps those keys are already being handled by the system *and* Qt, in parallel... you can try to consume them from Qt, but the system-side still runs regardless. Just a guess
04:34 PM JT-Shop: this is all inside qt the system does not process key stroke afaik only apps
04:35 PM JT-Shop: if you're editing a file in pluma and pluma has focus then emc does not receive any input from the keyboard
04:36 PM JT-Shop: the system only directs keyboard to the app that has focus
04:36 PM JT-Shop: I assume
04:38 PM JT-Shop: so what is happening is if I hold down the right arrow in emc after a bit the tab window changes tabs all inside Qt
04:49 PM rdtsc-w: weird
04:56 PM Tom_L: so the mystery continues?
04:57 PM JT-Shop: yup
04:57 PM Tom_L: i didn't get anything with that first test
04:57 PM Tom_L: with the label
04:58 PM JT-Shop: if you have a tab widget on the window the right arrow will after a bit make the current tab change
04:58 PM JT-Shop: and the left arrow
04:58 PM Tom_L: it may do the reverse with the left arrow if the far right tab is active
04:59 PM Tom_L: is that label still valid?
04:59 PM Tom_L: or have you moved on
04:59 PM JT-Shop: it's still in use
04:59 PM JT-Shop: but I'll remove it in the morning
05:00 PM Tom_L: just got back but i'll do a pull and test
05:00 PM JT-Shop: ok
05:00 PM Tom_L: is that the only thing you've added so far?
05:00 PM JT-Shop: check the commits
05:03 PM Tom_L: key_lb doesn't do anything here
05:03 PM Tom_L: i put it in one of the example files and ran lcnc with it
05:05 PM JT-Shop: key_lb should show what key was pressed
05:05 PM Tom_L: doesn't do anything
05:06 PM JT-Shop: how did you break it?
05:06 PM Tom_L: i added it to touch-probe3 and ran lcnc with the touch-probe3.ini
05:06 PM Tom_L: just dropped a label down and named ti
05:06 PM Tom_L: it
05:07 PM JT-Shop: I used the axis look alike
05:07 PM Tom_L: does it need to be in the main window?
05:07 PM JT-Shop: without the label it should error out
05:07 PM Tom_L: it's on a tab
05:07 PM JT-Shop: are you sure you're running 2.0.0
05:08 PM Tom_L: it says 2.0.0 at the top of the ui
05:08 PM JT-Shop: that's it then
05:08 PM Tom_L: moved it to the main window and still nothing
05:08 PM Tom_L: cloned from your repo... i didn't fork it to mine
05:09 PM Tom_L: i'll try axis
05:11 PM Tom_L: it works i just hadn't pressed an arrow yet
05:11 PM Tom_L: on both
05:14 PM Tom_L: if i hold the buttons, it scrolls in the gcode window
05:14 PM Tom_L: if i hold them long enough
05:15 PM Tom_L: i dunno what sequence triggered that but the 2nd time it didn't do that
05:17 PM Tom_L: ok, holding the tab key triggers that.
05:18 PM Tom_L: i was trying to use tab to select the next tab window but they're not sequenced so it went to the gcode window and started entering tabs
05:19 PM Tom_L: once the gcode window is full of tabs, the arrows move in that window
05:24 PM Tom_L: ^^ with no file open
05:24 PM JT-Shop: yup
05:25 PM Tom_L: one step closer though
05:25 PM Tom_L: they do seem responsive
05:33 PM JT-Shop: the semaphore does work and note it's only on the right arrow key if you pull and build
06:05 PM * JT-Shop calls it a night
06:12 PM Tom_L: i'll check in a bit
06:15 PM Tom_L: cool
06:15 PM Tom_L: made a script to build the tests so it's fewer steps
06:27 PM lcnc-relay: <roguish> 100 now..... topped out at 102
07:34 PM rdtsc_ is now known as rdtsc
07:35 PM rdtsc is now known as rdtsc_
09:19 PM rdtsc_ is now known as rdtsc