ANN: PyGUI 2.0.4

rzed rzantow at gmail.com
Fri Apr 24 04:13:13 CEST 2009


David Robinow <drobinow at gmail.com> wrote in
news:mailman.4403.1240449918.11746.python-list at python.org: 

> On Wed, Apr 22, 2009 at 8:50 PM, rzed <rzantow at gmail.com> wrote:
>> Greg Ewing <greg.ewing at canterbury.ac.nz> wrote in
>> news:49EDB69F.7070901 at canterbury.ac.nz:
>>
>>> PyGUI 2.0.4 is available:
>>>
>>>    http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/
>>>
[...]
>> I've always only gotten this response when I try to run the
>> blobedit demo:
>>  File "C:\extracted\PyGUI-2.0.4\Demos\BlobEdit\blobedit.py",
>> line 16, in <module>
>>    from GUI import Application, ScrollableView, Document,
>> Window, FileType, Cursor, rgb
>>  File "C:\Python25\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:\Python25\Lib\site-packages\GUI\__init__.py", line 69,
>> in __getattr__
>>    module = __import__(modname, self.__dict__, locals(), [name])
>> ImportError: No module named Applications
>>
>> I really don't know what this means. Is it a path issue? There
>> appears to be an Applications.py in GUI\Win32, with an
>> Application class. If there is some change I can make in the
>> code, can anyone tell me what to do? How can I fix it?
>>
[...]
>> --
>> rzed
>> --
>> http://mail.python.org/mailman/listinfo/python-list
>>
> You probably have PyGTK for windows installed.  PyGUI tries
> "Cocoa", "Gtk", and "Win32" in that order.  You can override that
> by: 
> 
> SET PYGUI_IMPLEMENTATION=Win32
> 
> (This is rather awkward.  Perhaps "Win32" should be tried before
> "Gtk"? ) 

Thank you VERY much for an excellent diagnosis and prescription. This 
does get beyond that frustrating barrier. 

-- 
rzed



More information about the Python-list mailing list