"""Defines :class:`GUI` providing a wxWindows interface to Hooke.\r
"""\r
\r
-import lib.libhooke as lh\r
+WX_GOOD=['2.6','2.8']\r
+\r
import wxversion\r
-wxversion.select(lh.WX_GOOD)\r
+wxversion.select(WX_GOOD)\r
\r
-from configobj import ConfigObj\r
import copy\r
import os.path\r
import platform\r
import time\r
\r
import wx.html\r
-import wx.lib.agw.aui as aui\r
+import wx.aui as aui\r
import wx.lib.evtmgr as evtmgr\r
-import wx.propgrid as wxpg\r
+\r
+# wxPropertyGrid included in wxPython >= 2.9.1, until then, see\r
+# http://wxpropgrid.sourceforge.net/cgi-bin/index?page=download\r
+# until then, we'll avoid it because of the *nix build problems.\r
+#import wx.propgrid as wxpg\r
\r
from matplotlib.ticker import FuncFormatter\r
\r
-from configobj import __version__ as configobj_version\r
-from matplotlib import __version__ as mpl_version\r
-from numpy import __version__ as numpy_version\r
-from scipy import __version__ as scipy_version\r
-from sys import version as python_version\r
-from wx import __version__ as wx_version\r
-from wx.propgrid import PROPGRID_MAJOR\r
-from wx.propgrid import PROPGRID_MINOR\r
-from wx.propgrid import PROPGRID_RELEASE\r
-\r
-try:\r
- from agw import cubecolourdialog as CCD\r
-except ImportError: # if it's not there locally, try the wxPython lib.\r
- import wx.lib.agw.cubecolourdialog as CCD\r
-\r
-#set the Hooke directory\r
-lh.hookeDir = os.path.abspath(os.path.dirname(__file__))\r
-from config.config import config\r
-import drivers\r
-import lib.clickedpoint\r
-import lib.curve\r
-import lib.delta\r
-import lib.playlist\r
-import lib.plotmanipulator\r
+from ..command import CommandExit, Exit, Command, Argument, StoreValue\r
+from ..interaction import Request, BooleanRequest, ReloadUserInterfaceConfig\r
+from ..ui import UserInterface, CommandMessage\r
+\r
import lib.prettyformat\r
-import panels.commands\r
-import panels.note\r
-import panels.perspectives\r
-import panels.playlist\r
-import panels.plot\r
-import panels.propertyeditor\r
-import panels.results\r
-import plugins\r
-\r
-global __version__\r
-global __codename__\r
-global __releasedate__\r
-__version__ = lh.HOOKE_VERSION[0]\r
-__codename__ = lh.HOOKE_VERSION[1]\r
-__releasedate__ = lh.HOOKE_VERSION[2]\r
-__release_name__ = lh.HOOKE_VERSION[1]\r
+import .panel as panel\r
+\r
+\r
\r
ID_About = wx.NewId()\r
ID_Next = wx.NewId()\r