#hazzy Logs
Apr 26 2020
#hazzy Calendar
12:01 AM JamesW: yup done it. Can see them as options but when assign to a button and run they don't seem to be used. Probably user error just not cracked what I'm missing yet.
12:03 AM JamesW: okay - if I explicitly select a file not a resource it works.
12:06 AM JamesW: okay - this is starting to suggest I need to be telling something to be loading this qrc file and its not happening.
12:06 AM JamesW: cose the behaviour is implying its not happening at run time
12:25 AM TurBoss: ah
12:26 AM TurBoss: there is qcompile a tool to compile resources
12:26 AM TurBoss: just run qcompile on your project root
12:26 AM TurBoss: qcompile .
12:28 AM JamesW: rgr
12:29 AM JamesW: done - no chnage
12:33 AM JamesW: checked it again. If select a file for the icon on the action button things work. As soon as I go down the resource path, no work.
12:34 AM TurBoss: lcvette or hazzy may know better :-)
12:35 AM JamesW: is all good. no mad rush. Something is clearly not linked that needs to be
12:36 AM JamesW: Designer sees the resource icons fine. And displays them correctly when selected via the resource selector path.
04:32 AM Not-944e: [02probe_basic] 07lsabi starred 03probe_basic - 13https://git.io/JftKK
10:19 AM hazzy-m: JamesW: the icons set in Designer can be located in a directory relative to the UI file
10:28 AM -!- #hazzy mode set to +o by ChanServ
10:34 AM hazzy-m: it used to be a qrc file was required, but I've since made some changes in how the UI and QSS file are loaded so Qt now knows how to interpret relative paths
10:35 AM hazzy-m: JamesW: take a look at this dir structure as an example: https://github.com/KurtJacobson/blue-control/tree/master/blue_control/ui
10:36 AM hazzy-m: and then look at the UI file: https://github.com/KurtJacobson/blue-control/blob/master/blue_control/ui/mainwindow.ui#L55
10:36 AM hazzy-m: QtDesigner correctly puts in the relative path the icons, and it shows up in both designer and when running the VCP
10:37 AM hazzy-m: you can also use relative paths in the QSS file: https://github.com/KurtJacobson/blue-control/blob/master/blue_control/ui/style.qss#L98
10:38 AM hazzy-m: This really needs to be documented better, but at least it works pretty much as one would expect it to now
10:41 AM hazzy-m: the QRC file still works, but its a lot more more to get working correctly, and requires an extra step to compile it to python
11:04 AM jthornton: JT found a piece of particle board the kind with the white laminated top and bottom left over from something long ago and it's going to make a perfect out feed table for the table saw
11:07 AM jthornton: I think I heard hazzy-m calling my name...
11:08 AM jthornton: nap time
11:08 AM hazzy-m: thats perfect, and if you wax it itll be very slick
11:09 AM hazzy-m: I don't think I summoned you lol
12:20 PM * JT[m] uploaded an image: VectorImage_2020-04-26_121747.jpg (5216KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/AQSsKVQBuIsnywYxMKOmzRyh >
12:20 PM JT[m]: Called me by my nickname "Document"
12:21 PM * JT[m] uploaded an image: VectorImage_2020-04-26_122055.jpg (3085KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/YTrbpqkdBLqUDvAybXGcTMQJ >
12:29 PM hazzy-m: JT: oh yes, you are the master documentator
12:30 PM hazzy-m: outfeed looks good!
12:30 PM hazzy-m: do those pins locate into the back of the saw?
12:30 PM hazzy-m: they are wood, so I guess I should call them dowels :)
12:33 PM JT-Shop2: yea there is a piece of angle on the back of the saw with holes in it for something
12:39 PM roguish[m]: hazzy: hey, what's that blue version of JT's BP ????
12:40 PM * hazzy-m is playing with QtSASS based style sheets
12:42 PM * JT[m] uploaded an image: VectorImage_2020-04-26_124151.jpg (3011KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/JBXnlDAlYKKLpoLIDzwnWhDv >
12:44 PM roguish[m]: hazzy: can PB probe routines be pulled out and made into one of those external widget things..?
12:45 PM hazzy-m: yes, absolutely
12:46 PM hazzy-m: I'm actually thinking about making a self contained probe dialog that will be easy to use with different VCPs
12:46 PM JT[m]: nice
12:49 PM roguish[m]: hazzy: that would be really handy.
12:50 PM JT-Shop: sounds like we are getting really close to drag and drop VCP's
12:50 PM roguish[m]: then if JT could add 'em to his BP, .........
12:55 PM * JT-Shop thinks roguish[m] doesn't like his probe routines lol
01:19 PM roguish[m]: JT-Shop: naw, it's just PB has lots more.....and I've gotten quite used to ProbeScreen's routines, especially the corners......and inside center, and outside center....
01:19 PM roguish[m]: admit, i haven't actually tried yours yet....need to set up my test probe first....
01:34 PM JT-Shop: just messing with you... if I had a good probe it might be useful to find a hole center but I don't use a probe for setup
02:51 PM roguish[m]: JT-Shop: I figured out why some of the fonts in BP are too big on my screen. In my fancy DRO vcp, I set all QLable to 24. works good for mine, not so good for BP....
02:52 PM roguish[m]: JT-Shop: I actually purchased a Tormach probe. pretty good. good enough for me. it's the damn probes that are fragile and $$$$$$$$$$$$$
03:03 PM roguish[m]: If I did not already have the Tormach probe, I would probably purchase one of these. https://vers.by/en/16-touch-probes
03:03 PM roguish[m]: they're by the author of ProbeScreen. price looks high, but do the conversion and they are very reasonable.
03:03 PM * roguish[m] uploaded an image: image.png (65KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/lKqFMNzVCjlqwouvtIVUVycK >
03:33 PM hazzy-m: roguish: The drewtronic probes are also supposed to be good, and not real expensive
03:45 PM JamesW: hazzy-m: thanks for those tips. I think I will abandon the resource (qrc) path as I can't seem to make that work, even after compiling. I'm clearly missing something. However using file references "just works". The file structure wise I'm on the money as well.
04:04 PM JT-Shop: I might try a DrewTronics CNC probe
04:05 PM JT-Shop: dang BlueWing batter has shot craps and it's not very old...
04:17 PM roguish[m]: https://drewtronics.org/s5000led looks nice. probably good enough.
04:17 PM JT-Shop: Tormach probe doesn't look bad either
04:18 PM JT-Shop: I'm guessing the necked down area on the stylus is the weak spot designed to break off
04:18 PM JT-Shop: Compatible with Renishaw M4 Stylus family
04:19 PM roguish[m]: i've been dumb enough to bust 2 stylii.
04:19 PM JamesW: gui question: I would like to mimic the checked button look of qtdragon. e.g. when a button has been activated (toggled) there is a stylish green triangle in the top right corner. Is that doable in qtpyvcp? Is it a special widget to start with or some exoctic qss on a normal actionbtn?
04:19 PM roguish[m]: one, pure accident. one pure stupid
04:20 PM JT-Shop: anything is possible!
04:21 PM JamesW: https://drive.google.com/open?id=1ogaEg6Vpu4Iu0dpzwG-XJJVCyAo54A4v
04:21 PM JamesW: this type of look
04:21 PM JamesW: see the estop/power and axis buttons
04:22 PM * JT-Shop goes to treat (spoil) the chickens
04:22 PM JamesW: lol JT - yeah I'm sure it is given enough time and money.
04:22 PM JamesW: I'm just looking for a bit of guidance on what path to pursue.
04:23 PM roguish[m]: JamesW: i think ya swap the button images in and out. lcvette would know for sure....
04:23 PM JamesW: e.g. going down the led-button path only to be told it will never work after several days of fighting with it would be Bad (tm)
04:24 PM roguish[m]: open ProbeBasic in qtpyvcp editor and see what's going on....
04:25 PM JamesW: I didn't think probe basic did that look?
04:25 PM JamesW: i.e. the little tirangle like ticks
04:25 PM JamesW: will power up the sim and re check
04:29 PM hazzy-m: JamesW: excellent!
04:29 PM hazzy-m: I think the VCP also seems to start up faster and use fewer resources when using file references as well
04:31 PM JT-Shop: yea it's just a different image for the button
04:31 PM JT-Shop: nice!
04:31 PM JamesW: roguish: re image swapping - I think you might be right. That could be the easiest pattern. Will look a bit more closely at qtdragon to see if that is what is happening. On first look it seemed like there wwere a crap load of extra attributes on the actionbutton visual settings that could be doing it
04:33 PM JamesW: My "plan" is to convert qtdragon (my version for my Elo 1280x1024 touch screen) into qtpydragon. lol
04:33 PM JamesW: what diods?
04:33 PM JamesW: oops - wrong window lol
04:35 PM JT-Shop: hmm, that looks reasonably clean for a gui
04:37 PM JamesW: my real life version(not the sim here) has an A axis as well. About to build a 4th axis. Have a spare to requirements rotary table.
04:37 PM hazzy-m: JamesW: sorry, lost internet connection
04:38 PM JamesW: And for hobby use that should last a while
04:38 PM hazzy-m: using my phone hotsopt lol
04:38 PM hazzy-m: that is custom widget painting in QDragon
04:38 PM JamesW: ahhhh
04:38 PM JT-Shop: https://stackoverflow.com/questions/18531959/how-to-create-triangle-shape-in-the-top-right-angle-of-another-div-to-look-divid
04:39 PM hazzy-m: that should be easy enough to do
04:39 PM JamesW: so in qtpyvcp best pattern might be some image swapping? If I still want that style.
04:39 PM hazzy-m: using an LED button as a base for a custom widget
04:39 PM hazzy-m: could also be doable with CSS and a button icon set the the upper left corner
04:39 PM JamesW: I had planned to flattern the look to be more probe-basic like.
04:39 PM JamesW: Less of the shiny gloss which is a bit hard on old eyes
04:40 PM hazzy-m: which would be the easiest and neatest solution
04:40 PM JamesW: which means I might go with a changed color to the whole button. Make it a green with black text on it
04:40 PM JamesW: or make the text green
04:40 PM JamesW: will play.
04:41 PM hazzy-m: JamesW: did you see my BlueControl pics?
04:41 PM JamesW: Is there a good reference for all the attributes that css can get at and manipulate?
04:41 PM hazzy-m: trying to go with a flat minimalist look
04:41 PM hazzy-m: yes
04:42 PM JamesW: re BlueControl - yup. Nice
04:42 PM hazzy-m: https://doc.qt.io/qt-5/stylesheet-examples.html
04:42 PM hazzy-m: gtg, bbl
04:44 PM JT-Shop: I use a green border https://github.com/jethornton/mill_touch_v6
04:51 PM JamesW: awesome help. Appreciate it.
04:58 PM JamesW: on style sheets. Can I assume that if I can see the attribute in designer then I can either check it or change it (depending on what it is) in css?
05:00 PM TurBoss: the designer does its best to draw the stylesheet
05:00 PM JamesW: JT - can see the green border approach you used. But I think unless the background is very dark then, at least for my eyes, there is not enough contrast
05:00 PM TurBoss: only when running the app is correctly shown
05:01 PM JamesW: TurBoss: cheers. What I figured as well. Much like css work in in a browser
05:02 PM TurBoss: hello
05:02 PM JamesW: JT: I do like you mill interface work. Very interested to see where you take the conversational cnc side of it
05:03 PM JamesW: Has anyone looked at ncam? Can I run that as a pop-up app/dialog from a qtpyvcp gui?
05:04 PM hazzy-m: TurBoss: hello!
05:04 PM TurBoss: https://github.com/Baekalfen/PyBoy
05:04 PM hazzy-m: JamesW: nCam is awesome! But its GTK :(
05:04 PM TurBoss: gameboy emulator writen in python
05:04 PM JT-Shop: JamesW, you can also change the backgound color when a button state changes
05:04 PM hazzy-m: it can't be embedded directly
05:05 PM hazzy-m: we need an xembed widget/...
05:05 PM * JT-Shop has to find a keyboard for the CHNC or he can't run this part
05:05 PM JamesW: I do wonder if a port of ncam should be seriously considered.
05:05 PM JamesW: anything in old world gtk2 is going to die as the OS versions march on
05:06 PM JamesW: at least that is what it feels like from where I am sitting
05:11 PM JamesW: hazzy-m: even if it can't be embeded. Can it be started as a popup app? like a helper system?
05:14 PM TurBoss: could be ran standalone?
05:15 PM hazzy-m: yes, it can be run along side
05:15 PM hazzy-m: but a port or something similar implemented in QT would be really neat
05:15 PM TurBoss: then just open the resulting ngc file
05:16 PM TurBoss: yes
05:16 PM TurBoss: we also have thhe vtk stuff to draw shapes
05:16 PM hazzy-m: true!
05:16 PM hazzy-m: could make a really nice conversational with that
05:18 PM JamesW: yup - ncam is awesome for conversational cnc. Been using it from within gmoccapy
05:18 PM JamesW: missing it very much now using my qtdragon mod
05:18 PM JamesW: hmmm ... wonder if I have the time and energy to fork and convert it.
05:19 PM hazzy-m: I ported int to GTK3 lol
05:19 PM hazzy-m: that was a pain
05:19 PM hazzy-m: probably would not be that much harder to port it to Qt
05:19 PM JamesW: Been quite a few years since I last did anything like that. Back when neverwinter nights from Bioware was a thing I spent 2-3 years as the tools developer for the DLA mod group.
05:20 PM hazzy-m: https://github.com/KurtJacobson/NativeCAM/tree/GTK3
05:21 PM JamesW: lol - sucker for punishment. :-p
05:21 PM hazzy-m: wow, that was almost 2.5 years ago
05:23 PM JamesW: well before I bite anything more off I need to learn the patterns in this UI and get my own gui built and working.
05:23 PM JamesW: and right now I need to knuckle under and solder up a 4n25 isolator circuit for my TLO tool
05:26 PM JT-Shop: JamesW, have you done the tutorials?
05:30 PM JamesW: most of them. Not complicated. Just need to practice and bake things to memory.
05:32 PM JT-Shop: ok great, I know the feeling that it takes more than a few times to get it to sink in
05:32 PM JamesW: while I'm not a coder by profession I've been hobby coding for 20+ years in everything from assemble, C, C++, Obj-C, Cobol, Python, etc etc etc etc etc. LOL. Starting to feel old now. Anyway, just needed to get the patterns into my head then will be off. Better at doing that with some conversations than just "book learning". :)
05:34 PM JamesW: I will confess that smalltalk and fortran both did my head in and I sort gave up on them.
05:35 PM JamesW: And I find java and scala both equally annoying.
05:36 PM JamesW: oh well. When in doubt there is always BEER. :-D
05:42 PM hazzy-m: yea, beer or vino always helps when the coding gets hard
05:42 PM hazzy-m: in fact, I have a class right now lol
05:43 PM hazzy-m: I love the concept of smalltalk, and it's great fun to play with, but Ive never been able to actually do anything useful with it
05:44 PM * JT-Shop got a perfect fitting part so he calls it a day
05:44 PM hazzy-m: class > glass
05:44 PM JT-Shop: took two lathes lol
05:45 PM hazzy-m: thats a good way to end the day
05:45 PM JT-Shop: yea heading in to start my shrimp and grits for dinner
05:45 PM TurBoss: hazzy: do you read double from irc?
05:45 PM hazzy-m: TurBoss: yes
05:45 PM TurBoss: hello Jt
05:46 PM JT-Shop: hi TurBoss
05:46 PM TurBoss: its also happends to #freenode_#panda3d:matrix.org but not more rooms
05:47 PM Guest69972: test
05:48 PM Guest69972: messgae one
05:57 PM * TurBoss uploaded an image: image.png (6KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/FxEJXxFodZSyeAAMpxnQwduZ >
06:01 PM JamesW: how are you guys doing this image upload business?
06:05 PM TurBoss: riot.im
06:06 PM TurBoss: https://riot.im/app/#/welcome
06:08 PM TurBoss: if you log in to the matrix using riot you can "link" your freenode nick
06:08 PM TurBoss: thoose tho have the nick-m on the irc didn't linked their account
06:08 PM TurBoss: but thery are allowed
06:09 PM TurBoss: also there is people here from discord and gitter
06:09 PM TurBoss: o/
06:15 PM TurBoss: linked accounts have inconvenients if the nnetwork goes down 🤣
06:18 PM JamesW: think will keep it simple and just dump stuff to google drive
06:18 PM TurBoss: sure
06:19 PM JamesW: well for starters can't see where the linkins done lol
06:22 PM JamesW: ahh - maybe not need to link at all. Just use same display name :-p
06:30 PM TurBoss: sure
06:30 PM TurBoss: yeah wellcome
06:30 PM TurBoss: * yeah welcome
06:55 PM JamesW: messgaes on the freenode side seem to double post on riot
06:56 PM JamesW: or maybe not ... how odd. Did before.
06:56 PM JamesW: hah! did it again. LOL
07:02 PM hazzy-m: yes, I think it's a bug
07:02 PM hazzy-m: its recent
07:06 PM JamesW: oh well. Will operate off my hexchat client and use the riot side for files/images
07:25 PM hazzy-m: yes it does!
07:25 PM hazzy-m: hurray
07:26 PM hazzy-m: yes
07:26 PM hazzy-m: its not echoing back to freenode
07:34 PM hazzy-m: you need to start a private chat with NickServ
07:35 PM hazzy-m: TurBoss: can you remember exactly how to link? I forgot lol
08:00 PM * hazzy-m uploaded an image: image.png (36KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/ytBfwZUJdvMQjXiShQwDOptu >
08:01 PM hazzy-m: finally got the tab widgets to work properly in all orientations
08:10 PM JamesW: nice!
08:20 PM joco_nz[m]: test echo to freenode ...
08:21 PM JamesW: and we have a working echo/link
08:21 PM TurBoss: @appservice-irc:matrix.org:
08:21 PM hazzy-m: hurray!
08:21 PM TurBoss: hello
08:21 PM TurBoss: was having some fun playing zero-k
08:21 PM joco_nz[m]: https://github.com/matrix-org/matrix-appservice-irc/wiki/Guide:-How-to-use-Matrix-to-participate-in-IRC-rooms
08:21 PM hazzy-m: just a little too late TurBoss xD
08:22 PM * TurBoss is in place 62 world ranking
08:22 PM TurBoss: \o/
08:22 PM joco_nz[m]: out of 62? :-p
08:22 PM hazzy-m: wow!
08:22 PM TurBoss: yes lol
08:22 PM hazzy-m: How many are there?
08:22 PM TurBoss: duno
08:22 PM hazzy-m: xD
08:22 PM TurBoss: 3k
08:23 PM * TurBoss invites you all to play
08:23 PM TurBoss: it runs on linux
08:23 PM TurBoss: native
08:23 PM TurBoss: https://zero-k.info/
08:23 PM TurBoss: :P
09:33 PM joco_nz[m]: is the linux version on steam?
09:39 PM TurBoss: nop
09:39 PM TurBoss: it requires mono
09:40 PM * TurBoss sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/EnQqjLCWmoyPeZfuXqYZprdJ >
10:54 PM JamesW: got game installed. Reminds me of Total Annihilation and Supreme Commander
11:00 PM TurBoss: yes
11:00 PM TurBoss: xD