[-] 0101100101@programming.dev 2 points 2 days ago* (last edited 1 day ago)

Thanks for your response.

should never embed classes within other classes)

Why is this? I have to admit that coming from other languages, it feels dirty, but is there a pythonic good reason for this? The class 'belongs' to the FoldableDockWidget class, so I figure it's the best place to put it.

[-] 0101100101@programming.dev 1 points 2 days ago

I got one for my wife and she loves it.

Sounds like decent grounds for a divoce

[-] 0101100101@programming.dev 1 points 2 days ago

This looks awesome - thanks! What's the all-in price?

[-] 0101100101@programming.dev 2 points 2 days ago* (last edited 2 days ago)

Thanks. I wondered why I instinctively text-transformed the title of the widget to uppercase! I commented it out thinking perhaps it doesn't look grammatically correct! Reduced the font size a bit and I think it looks a heck of a lot better now!

[-] 0101100101@programming.dev 2 points 2 days ago* (last edited 2 days ago)

Qt automatically handles the conversion of QDockWidgets into tabbed docked widgets when one is dragged over an existing one.

I have a little demo video, but I have no idea where to upload it to!

28

I'm working on a project that needs lots of toolbars on screen at once, even though not all of them will be used at the same time. So, I'm modelling this 'foldable' dock widget after what I remember Photoshop panels used to be like.

It's a work in progress, but would like to hear constructive suggestions.

https://blocks.programming.dev/0101100101/42c5d67f86c049baa3500aa38e439f8a

[-] 0101100101@programming.dev 2 points 3 days ago* (last edited 3 days ago)

Also forgot to point out, you can buy keys with a transparent cover over the top on ali so you can shove a piece of paper underneath the transparent bit to use as labels.

https://ae-pic-a1.aliexpress-media.com/kf/Sa64d09e1337e4dbe8ab64b7194aa790cF.jpg_220x220q75.jpg_.avif

[-] 0101100101@programming.dev 3 points 3 days ago* (last edited 3 days ago)

Amateurs. I use butterflies.

https://xkcd.com/378/

[-] 0101100101@programming.dev 6 points 3 days ago

I get this, but an IDE should be invisible and grow as you do and not require you to learn lots of janky things before it becomes a little bit useful for you.

Need the basics, great, here they are. Don't understand some advanced feature? Well the IDE has it here, but it isn't in your way, mess with it as and when you want. It'll still be there.

I don't think one IDE does everything for different languages and its ok to swap editors depending on your workflow, your project and your ever-changing skillset.

10
submitted 3 days ago* (last edited 3 days ago) by 0101100101@programming.dev to c/mechanical_keyboards@programming.dev

Might as well help get this channel off to a flying start!

What's your favourite switch (key type) and why? What would you like to try but haven't yet and what have you tried but wasn't for you?

[-] 0101100101@programming.dev 2 points 3 days ago

I'm using Mate and it allows me to easily define custom shortcuts to open apps and so on. I suppose autoIt / the linux variants / custom script can add additional functionality to the keypad as well!

[-] 0101100101@programming.dev 2 points 3 days ago

‘~Esc$&:;()[]{}<>=+*

Other than it being your password, why?

[-] 0101100101@programming.dev 3 points 3 days ago

I’m using ch57x-keyboard-tool to configure it

Great! I've bought similar without the dials (I wish I didn't have to pay extra for the stupid LEDs) and was hoping there was something open sourcey to configure it with rather than their dodgy codebase for the same reasons you list!

[-] 0101100101@programming.dev 3 points 3 days ago

Your opinions don't align with mine, so I'm going to personally insult you.

It's this toxic attitude that we reject. If you prefer to stare at screens all the time causing damage to your retinas, then I'm happy for you.

39

Working on a class that I'd like to use in a library (not for work) and think I'd appreciate external opinions!

If not, where else could I post code for critique? Thanks

17

They're noisy, clacky, impossible to use in an office, in your house without headphones, perhaps even annoying neighbours, need effort to make them work on USB, so why do people love them so much?

I've tested two. Didn't like them because sometimes if you don't hit the keys head on, they move a bit to the side with the spring and that's jarring on your fingers.

Where do you stand on the debate?

Also, first post, so what better a topic!

59

A great way to learn the basics. It'll be old, but that's ok. It's going to cover all the shell basics and then more. It's still going to be useful, it'll cost you pennies, you'll be able to dip into it when you want, and you'll be giving to a good cause.

41
submitted 3 days ago* (last edited 3 days ago) by 0101100101@programming.dev to c/programming@programming.dev

Macro keyboards are mini programmable USB keyboards that can be pressed to trigger shortcuts, a sequence of keypresses etc. They can have several layers so switching to a different one will trigger different keypresses from the same key, so e.g. different IDEs can be represented.

I've just bought one with a view to setting up shortcuts for debugging. Each IDE has its own unique keys for navigating through the code, so I figure it'll be nice to just press one key to start debugging and one key to step into instead of a combination of ctrl+whatever etc

Do you use one? If so, what do you use it for and what size do you use? Is it too big / too small?

view more: next ›

0101100101

joined 4 days ago