Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. def recreate_all_variable_widgets(self):
  2. for tab_index in range(self.tab_widget.count()):
  3. function_tab = self.tab_widget.widget(tab_index)
  4. function_tab.destroy_variables_widgets()
  5. print('Destroyed all widgets from tab {}'.format(tab_index))
  6. function_tab.create_variables_widgets(window=self)
  7. print('Recreated all widgets from tab {}'.format(tab_index))
  8. function_tab.update()
  9. print('Update tab {}'.format(tab_index))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement