(self)
| 23895 | return True # return indicating the window stayed open |
| 23896 | |
| 23897 | def _find_users_code(self): |
| 23898 | try: # lots can go wrong so wrapping the entire thing |
| 23899 | trace_details = traceback.format_stack() |
| 23900 | file_info_pysimplegui, error_message = None, '' |
| 23901 | for line in reversed(trace_details): |
| 23902 | if __file__ not in line: |
| 23903 | file_info_pysimplegui = line.split(",")[0] |
| 23904 | error_message = line |
| 23905 | break |
| 23906 | if file_info_pysimplegui is None: |
| 23907 | return '' |
| 23908 | error_parts = None |
| 23909 | if error_message != '': |
| 23910 | error_parts = error_message.split(', ') |
| 23911 | if len(error_parts) < 4: |
| 23912 | error_message = error_parts[0] + '\n' + error_parts[1] + '\n' + ''.join(error_parts[2:]) |
| 23913 | if error_parts is None: |
| 23914 | print('*** Error popup attempted but unable to parse error details ***') |
| 23915 | print(trace_details) |
| 23916 | return '' |
| 23917 | filename = error_parts[0][error_parts[0].index('File ') + 5:] |
| 23918 | return filename |
| 23919 | except: |
| 23920 | return |
| 23921 | |
| 23922 | ''' |
| 23923 | ###### # # |
no outgoing calls
no test coverage detected