Greg said:
PyGUI2.0.1 is available:
Fixes some problems in setup.py affecting installation
on Linux and Windows.
What isPyGUI?
--------------
PyGUIis a cross-platform GUI toolkit designed to be lightweight
and have a highly Pythonic API.
I installedPyGUI-2.0.1 on Windows (32 bit, non Administrator access).
I got the following error in 2.0.1 when attempting the BlobEdit example:
D:\users\omh\runabq\pyGUI>c:\python26\python
Python 2.6.1 (r261:67517, Dec  4 2008, 16:51:00) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
 >>> import pickle
 >>> from GUI import Application,  ScrollableView, Document, Window, \
... Â FileType, Cursor, rgb
  File "<stdin>", line 1, in <module>
  File "c:\python26\Lib\site-packages\GUI\__init__.py", line 78, in __getattr__
   traceback.print_stack()
Failed to import 'Application' from Applications
Traceback (most recent call last):
  File "c:\python26\Lib\site-packages\GUI\__init__.py", line 69, in __getattr__
   module = __import__(modname, self.__dict__, locals(), [name])
  File "c:\python26\Lib\site-packages\GUI\Win32\Applications.py", line 8, in <module>
   import Components, Windows
  File "c:\python26\Lib\site-packages\GUI\Win32\Components.py", line 12, in <module>
   from Win32 import win_none
  File "c:\python26\lib\site-packages\GUI\Win32\__init__.py", line 2, in <module>
   raise ImportError("This should not be imported.")
ImportError: This should not be imported.
I presume that one should be able to import GUI.Win32 if I need to import win_none from it.
If I comment out line 2, I get the following error:
...
  File "c:\python26\Lib\site-packages\GUI\Win32\Components.py", line 12, in <module>
   from Win32 import win_none
ImportError: cannot import name win_none
The directory structure that was installed is as follows:
c:\python26\Lib\site-packages\GUI
c:\python26\Lib\site-packages\GUI\Generic
c:\python26\Lib\site-packages\GUI\Resources
c:\python26\Lib\site-packages\GUI\Resources\cursors
c:\python26\Lib\site-packages\GUI\Win32
Andrew MacKeith