def __init__(self): """Initialize the application Initializes all the different parts of the application. Creates the PugdebugDebugger object, sets up the application UI, connects signals to slots. """ super(Pugdebug, self).__init__() self.debugger = PugdebugDebugger() self.formatter = PugdebugFormatter() # UI elements self.main_window = PugdebugMainWindow() self.file_browser = self.main_window.get_file_browser() self.projects_browser = self.main_window.get_projects_browser() self.settings = self.main_window.get_settings() self.document_viewer = self.main_window.get_document_viewer() self.variable_viewer = self.main_window.get_variable_viewer() self.stacktrace_viewer = self.main_window.get_stacktrace_viewer() self.breakpoint_viewer = self.main_window.get_breakpoint_viewer() self.expression_viewer = self.main_window.get_expression_viewer() self.documents = PugdebugDocuments() self.setup_file_browser() self.setup_projects_browser() self.connect_signals()
def __init__(self): """Initialize the application Initializes all the different parts of the application. Creates the PugdebugDebugger object, sets up the application UI, connects signals to slots. """ super(Pugdebug, self).__init__() self.debugger = PugdebugDebugger() # UI elements self.main_window = PugdebugMainWindow() self.file_browser = self.main_window.get_file_browser() self.projects_browser = self.main_window.get_projects_browser() self.document_viewer = self.main_window.get_document_viewer() self.variable_viewer = self.main_window.get_variable_viewer() self.stacktrace_viewer = self.main_window.get_stacktrace_viewer() self.breakpoint_viewer = self.main_window.get_breakpoint_viewer() self.expression_viewer = self.main_window.get_expression_viewer() self.documents = PugdebugDocuments() self.connect_signals() signal.signal(signal.SIGINT, signal.SIG_DFL) if settings.get_last_files('project/' + projects.active() + '/recent_files'): for item in settings.get_last_files('project/' + projects.active() + '/recent_files'): self.open_document(item, False)