Skip to content

Conversation

jardous
Copy link

@jardous jardous commented Aug 21, 2022

No description provided.

@@ -436,6 +436,8 @@ class PanelWindow(QMainWindow):
self.fStoppingSDK = True
self.fProccessSDK.terminate()

def setInformation(self, info):
self.ui.label_information.setText(info)
Copy link
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

@@ -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:
Copy link
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


# --------------------------------------------------------------------------------------------------------
# Create and show GUI

gui = PanelWindow()
gui.show()

gui.setInformation("<b>LV2 path:</b><br/>" + "<br/>".join(lv2_path.split(":")))
Copy link
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
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