leon-thomm / Ryven

Flow-based visual scripting for Python
https://ryven.org
MIT License
3.8k stars 443 forks source link

Node names truncated in Nodes' list #107

Open sphh opened 2 years ago

sphh commented 2 years ago

I have two nodes in the package directory long_package_directory:

class LongNodeName(NENV.Node):
    """Node with a long name."""

    title = 'Long Node Name'

class VeryLongNodeName(NENV.Node):
    """Node with a very long name."""

    title = 'Very Long Node Name'

When I load them, the names get truncated in the Nodes' list (lower left corner of the main window): Screenshot from 2022-04-11 22-11-18

If I move the divider between the Scripts and Nodes lists and the main flow area to the right, the node names are still not displayed in their full length (note, that the bottom node name is Very Long Node Name …): Screenshot from 2022-04-11 22-11-39

Also the list does not fill the whole available space. Is this intended?

leon-thomm commented 2 years ago

Is this intended?

no.

sphh commented 2 years ago
* indicate too long names ("...")

That should be easy, because the new StartupDialog.py file from PR #96 has already an ElideLabel widget class, which does that. Just use .setElideMode(Qt.ElideRight) to have the ellipses at the end of the name.