def _init_layout_widgets(self, master, frame_info): DialogVisualizer._init_layout_widgets(self, master, frame_info) self._locals_book = ttk.Notebook(self.main_pw) self._locals_frame = VariablesFrame(self._locals_book) self._locals_book.preferred_size_in_pw = 200 self._locals_book.add(self._locals_frame, text=tr("Local variables")) self.main_pw.add(self._locals_book, minsize=100)
class FunctionCallDialog(FrameDialog): def __init__(self, master, frame_info): FrameDialog.__init__(self, master, frame_info) def _init_layout_widgets(self, master, frame_info): FrameDialog._init_layout_widgets(self, master, frame_info) self._locals_book = ttk.Notebook(self.main_pw) self._locals_frame = VariablesFrame(self._locals_book) self._locals_book.add(self._locals_frame, text="Local variables") self.main_pw.add(self._locals_book, minsize=100) def _load_code(self, frame_info): FrameDialog._load_code(self, frame_info) if hasattr(frame_info, "function"): function_label = frame_info.function.repr else: function_label = frame_info.code_name # change tab label self._code_book.tab(self._text_frame, text=function_label) def _update_this_frame(self, msg, frame_info): FrameDialog._update_this_frame(self, msg, frame_info) self._locals_frame.update_variables(frame_info.locals)
def __init__(self, master): VariablesFrame.__init__(self, master) get_workbench().bind("Globals", self._handle_globals_event, True) get_workbench().bind("DebuggerProgress", self._request_globals, True) get_workbench().bind("ToplevelResult", self._request_globals, True) get_runner().send_command( InlineCommand("get_globals", module_name="__main__"))
def __init__(self, master): VariablesFrame.__init__(self, master) get_workbench().bind("Globals", self._handle_globals_event, True) get_workbench().bind("BackendRestart", lambda e=None: self._clear_tree(), True) get_workbench().bind("DebuggerProgress", self._request_globals, True) get_workbench().bind("ToplevelResult", self._request_globals, True)
class FunctionCallDialog(DialogVisualizer): def __init__(self, master, frame_info): DialogVisualizer.__init__(self, master, frame_info) def _init_layout_widgets(self, master, frame_info): DialogVisualizer._init_layout_widgets(self, master, frame_info) self._locals_book = ttk.Notebook(self.main_pw) self._locals_frame = VariablesFrame(self._locals_book) self._locals_book.preferred_size_in_pw = 200 self._locals_book.add(self._locals_frame, text=tr("Local variables")) self.main_pw.add(self._locals_book, minsize=100) def _load_code(self, frame_info): DialogVisualizer._load_code(self, frame_info) function_label = frame_info.code_name # change tab label self._code_book.tab(self._text_frame, text=function_label) def _update_this_frame(self, msg, frame_info): DialogVisualizer._update_this_frame(self, msg, frame_info) self._locals_frame.update_variables(frame_info.locals)
def __init__(self, master): VariablesFrame.__init__(self, master) self.configure(border=1) self.vert_scrollbar.grid_remove()
def __init__(self, master, workbench): VariablesFrame.__init__(self, master, workbench)
def _init_layout_widgets(self, master, frame_info): FrameDialog._init_layout_widgets(self, master, frame_info) self._locals_book = ttk.Notebook(self.main_pw) self._locals_frame = VariablesFrame(self._locals_book) self._locals_book.add(self._locals_frame, text="Local variables") self.main_pw.add(self._locals_book, minsize=100)