Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add license #22

Open
tin2tin opened this issue Jul 30, 2022 · 1 comment
Open

Add license #22

tin2tin opened this issue Jul 30, 2022 · 1 comment

Comments

@tin2tin
Copy link
Contributor

tin2tin commented Jul 30, 2022

From my waveform experiments, this snippet will add license to the file data:

In UI:

            try:
                license = addon_data.freesound_list[addon_data.active_list_item].license
            except:
                license = "Unknown"
            row = col_list.row(align=True)
            split = row.split(factor=0.4, align=True)
            split.alignment = 'RIGHT'
            split.label(text="License")
            split = split.split(factor=0.6, align=True)
            split.alignment = 'LEFT'                
            split.label(text=license)```

And this in freesound.py:

```    license: StringProperty(
        name="License",
        description="The license of this sound",
        default="License"
    )```
@melMass
Copy link

melMass commented Jul 30, 2022

What is the purpose? There is already

license: EnumProperty(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants