"""The pipe editor GUI element.""" # Python module imports. import wx import wx.grid # relax module imports. from data_store import Relax_data_store; ds = Relax_data_store() from graphics import WIZARD_IMAGE_PATH, fetch_icon from gui.components.menu import build_menu_item from gui.fonts import font from gui.icons import relax_icons from gui.message import Question from gui.misc import add_border, bitmap_setup from gui.string_conv import gui_to_str, str_to_gui from gui.uf_objects import Uf_storage; uf_store = Uf_storage() from lib.errors import RelaxError from pipe_control.pipes import cdp_name, delete, get_bundle, get_type, pipe_names, switch from status import Status; status = Status() # Some IDs for the menu entries. MENU_BUNDLE = wx.NewId() MENU_DELETE = wx.NewId() MENU_SWITCH = wx.NewId() MENU_NEW_AUTO_ANALYSIS = wx.NewId() class Pipe_editor(wx.Frame): """The pipe editor window object."""
$ ./relax devel_scripts/memory_leak_test_GUI_uf.py """ # Python module imports. from os import sep from pympler import muppy import wx # relax module imports. from data_store import Relax_data_store ds = Relax_data_store() from gui.fonts import font from gui.interpreter import Interpreter from gui.uf_objects import Uf_storage uf_store = Uf_storage() from lib.errors import RelaxError from status import Status status = Status() from user_functions.data import Uf_info uf_info = Uf_info() class Dummy_controller: """Dummy relax controller.""" def __init__(self): self.log_panel = Dummy_log_panel() class Dummy_log_panel: """Dummy relax controller log panel."""
############################################################################### # Module docstring. """The spin viewer frame.""" # Python module imports. import wx # relax module imports. from graphics import WIZARD_IMAGE_PATH, fetch_icon from gui.icons import relax_icons from gui.misc import gui_raise from gui.spin_viewer.splitter import Tree_splitter from gui.string_conv import gui_to_str, str_to_gui from gui.wizards.wiz_objects import Wiz_page, Wiz_window from gui.uf_objects import build_uf_menus, Uf_storage; uf_store = Uf_storage() from lib.errors import RelaxNoPipeError from pipe_control.pipes import cdp_name, pipe_names from status import Status; status = Status() # wx IDs for the toolbar. TB_SPIN_LOADER_ID = wx.NewId() TB_REFRESH = wx.NewId() class Spin_view_window(wx.Frame): """A window element for the tree view.""" def __init__(self, *args, **kwds):