Skip to content

Commit 1153990

Browse files
committed
🪲 Fix slider crashing the program.
1 parent b130f33 commit 1153990

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

pyflow/blocks/codeblock.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ def run_code(self):
133133

134134
super().run_code() # actually run the code
135135

136+
def execution_finished(self):
137+
super().execution_finished()
138+
self.run_button.setText(">")
139+
self.run_all_button.setText(">>")
140+
136141
def update_title(self):
137142
"""Change the geometry of the title widget."""
138143
self.title_widget.setGeometry(

pyflow/blocks/executableblock.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ def run_code(self):
8585
def execution_finished(self):
8686
"""Reset the text of the run buttons."""
8787
self.run_state = 0
88-
self.run_button.setText(">")
89-
self.run_all_button.setText(">>")
9088
self.blocks_to_run = []
9189

9290
def _interrupt_execution(self):

0 commit comments

Comments
 (0)