From 911ede57f5abcc3cfdc1687eaf21533a66599d72 Mon Sep 17 00:00:00 2001 From: = Date: Sun, 5 Apr 2020 03:10:12 -0300 Subject: [PATCH] when button create set enable false --- visma/gui/window.py | 1 + 1 file changed, 1 insertion(+) diff --git a/visma/gui/window.py b/visma/gui/window.py index 8454172..8b6bbdf 100644 --- a/visma/gui/window.py +++ b/visma/gui/window.py @@ -344,6 +344,7 @@ def buttonsLayout(self): interactionModeLayout = QVBoxLayout() self.interactionModeButton = QtWidgets.QPushButton('visma') self.interactionModeButton.clicked.connect(self.interactionMode) + self.interactionModeButton.setEnabled(False) interactionModeLayout.addWidget(self.interactionModeButton) interactionModeWidget = QWidget(self) interactionModeWidget.setLayout(interactionModeLayout)