-
Notifications
You must be signed in to change notification settings - Fork 9
add infopanel to show current LV2 path #5
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
base: master
Are you sure you want to change the base?
Conversation
@@ -436,6 +436,8 @@ class PanelWindow(QMainWindow): | |||
self.fStoppingSDK = True | |||
self.fProccessSDK.terminate() | |||
|
|||
def setInformation(self, info): | |||
self.ui.label_information.setText(info) |
There was a problem hiding this comment.
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
@@ -456,18 +458,21 @@ if __name__ == '__main__': | |||
# -------------------------------------------------------------------------------------------------------- | |||
# Set-up workdir environment as LV2_PATH, if relevant | |||
|
|||
if os.getenv("LV2_PATH") is None: | |||
lv2_path = os.getenv("LV2_PATH") | |||
if lv2_path is None: |
There was a problem hiding this comment.
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
|
||
# -------------------------------------------------------------------------------------------------------- | ||
# Create and show GUI | ||
|
||
gui = PanelWindow() | ||
gui.show() | ||
|
||
gui.setInformation("<b>LV2 path:</b><br/>" + "<br/>".join(lv2_path.split(":"))) |
There was a problem hiding this comment.
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.
There was a problem hiding this 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
No description provided.