Skip to content

add infopanel to show current LV2 path#5

Open
jardous wants to merge 1 commit into
mod-audio:masterfrom
jardous:infopanel
Open

add infopanel to show current LV2 path#5
jardous wants to merge 1 commit into
mod-audio:masterfrom
jardous:infopanel

Conversation

@jardous
Copy link
Copy Markdown

@jardous jardous commented Aug 21, 2022

No description provided.

Comment thread source/mod-panel
self.fProccessSDK.terminate()

def setInformation(self, info):
self.ui.label_information.setText(info)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add an empty line after this and the code separator

Comment thread source/mod-panel

if os.getenv("LV2_PATH") is None:
lv2_path = os.getenv("LV2_PATH")
if lv2_path is None:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lv2_path and LV2_PATH point to the same thing here, best to just use LV2_PATH as single var

Comment thread source/mod-panel
gui = PanelWindow()
gui.show()

gui.setInformation("<b>LV2 path:</b><br/>" + "<br/>".join(lv2_path.split(":")))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this call should be done before show.
better yet, pass it as argument to the class constructor.

Copy link
Copy Markdown
Member

@falkTX falkTX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added a few comments for things to tweak

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

Successfully merging this pull request may close these issues.

2 participants