diff --git a/resources/ui/mod_panel.ui b/resources/ui/mod_panel.ui index a8c6538..304501e 100644 --- a/resources/ui/mod_panel.ui +++ b/resources/ui/mod_panel.ui @@ -15,6 +15,67 @@ + + + + MOD SDK + + + + + + details here + + + true + + + + + + + + + Start + + + + + + + Stop + + + + + + + ... + + + Qt::RightArrow + + + + + + + Qt::Vertical + + + + + + + TextLabel + + + + + + + + @@ -121,7 +182,20 @@ - + + + + Qt::Vertical + + + + 268 + 219 + + + + + 0 @@ -303,14 +377,29 @@ - - + + + + + 0 + 0 + + + + false + - MOD SDK + Environment - + - + + + + 0 + 0 + + details here @@ -319,64 +408,9 @@ - - - - - - Start - - - - - - - Stop - - - - - - - ... - - - Qt::RightArrow - - - - - - - Qt::Vertical - - - - - - - TextLabel - - - - - - - - - Qt::Vertical - - - - 268 - 219 - - - - diff --git a/source/mod-panel b/source/mod-panel index f1ef9a3..dcb2e25 100755 --- a/source/mod-panel +++ b/source/mod-panel @@ -436,6 +436,8 @@ class PanelWindow(QMainWindow): self.fStoppingSDK = True self.fProccessSDK.terminate() + def setInformation(self, info): + self.ui.label_information.setText(info) # ------------------------------------------------------------------------------------------------------------ # Main @@ -456,11 +458,13 @@ 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: WORKDIR = os.getenv("WORKDIR", os.path.expanduser("~/mod-workdir")) LV2_PATH = os.path.join(WORKDIR, "x86_64", "plugins") if os.path.exists(LV2_PATH): os.environ["LV2_PATH"] = LV2_PATH + lv2_path = LV2_PATH # -------------------------------------------------------------------------------------------------------- # Create and show GUI @@ -468,6 +472,7 @@ if __name__ == '__main__': gui = PanelWindow() gui.show() + gui.setInformation("LV2 path:
" + "
".join(lv2_path.split(":"))) # -------------------------------------------------------------------------------------------------------- # App-Loop