this post was submitted on 09 Feb 2025
31 points (100.0% liked)

Python

6628 readers
116 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

๐Ÿ“… Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

๐Ÿ Python project:
๐Ÿ’“ Python Community:
โœจ Python Ecosystem:
๐ŸŒŒ Fediverse
Communities
Projects
Feeds

founded 2 years ago
MODERATORS
 

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

you are viewing a single comment's thread
view the rest of the comments
[โ€“] FizzyOrange@programming.dev 1 points 18 hours ago (1 children)

If you branch coverage tool can't handle branches on the same line I would suggest you use a different one! Does it handle if foo or bar?

Will not see the value that gets past into self.float_button.setIcon

Uhm, yes you will? Just step into the function.

self.float_button.setIcon is a Python wrapper around a C++ library. Might not be possible to, or want to, step into the function.

if foo or bar is part of a if-else condition. The else portion needs # pragma: no cover or coverage may complain.