(self, title, dict)
| 23940 | # displays them into a single text box |
| 23941 | |
| 23942 | def _display_all_vars(self, title, dict): |
| 23943 | num_cols = 3 |
| 23944 | output_text = '' |
| 23945 | num_lines = 2 |
| 23946 | cur_col = 0 |
| 23947 | out_text = title + '\n' |
| 23948 | longest_line = max([len(key) for key in dict]) |
| 23949 | line = [] |
| 23950 | sorted_dict = {} |
| 23951 | for key in sorted(dict.keys()): |
| 23952 | sorted_dict[key] = dict[key] |
| 23953 | for key in sorted_dict: |
| 23954 | value = dict[key] |
| 23955 | # wrapped_list = textwrap.wrap(str(value), 60) |
| 23956 | # wrapped_text = '\n'.join(wrapped_list) |
| 23957 | wrapped_text = str(value) |
| 23958 | out_text += '{} - {}\n'.format(key, wrapped_text) |
| 23959 | # if cur_col + 1 == num_cols: |
| 23960 | # cur_col = 0 |
| 23961 | # num_lines += len(wrapped_list) |
| 23962 | # else: |
| 23963 | # cur_col += 1 |
| 23964 | old_theme = theme() |
| 23965 | theme(_Debugger.DEBUGGER_MAIN_WINDOW_THEME) |
| 23966 | popup_scrolled(out_text, title=title, non_blocking=True, font=_Debugger.DEBUGGER_VARIABLE_DETAILS_FONT, keep_on_top=True, icon=PSG_DEBUGGER_LOGO) |
| 23967 | theme(old_theme) |
| 23968 | |
| 23969 | ''' |
| 23970 | ##### # # |
no test coverage detected