Re: ANN: PyGUI 2.0.1
I got the same error too.
On 4月14日, 上午2时47分, Andrew MacKeith wrote:
> Greg Ewing wrote:
> >PyGUI2.0.1 is available:
>
> > http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/
>
> > 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 "", line 1, in
> 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
>
> import Components, Windows
> File "c:\python26\Lib\site-packages\GUI\Win32\Components.py", line 12, in
>
> from Win32 import win_none
> File "c:\python26\lib\site-packages\GUI\Win32\__init__.py", line 2, in
>
> 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
>
> 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
--
http://mail.python.org/mailman/listinfo/python-list
Re: ANN: PyGUI 2.0.1
On 4月16日, 上午3时05分, Suraj Barkale wrote: > Greg Ewing canterbury.ac.nz> writes: > > >PyGUI2.0.1 is available: > > Thank you very much for this GUI toolkit. I always wanted something like this > on > windows. I installed this and tried out the tests on Python 2.6.1 and Windows > XP > SP3. Following are my observations. I will try to send some patches once I > have > looked at the code in detail. > > After installing on windows I had to manually delete > "C:\python26\lib\site-packages\GUI\Win32\__init__.py" in order to get it work. > > Test 02-window.py: > 1. Resizing window produces white horizontal bars. Use double buffering to > prevent this? > > Test 05-checkbox.py: > 1. Checkbok background is a black rectangle. > > Test 06-radiobutton.py: > 1. Radiobutton has a white background. > > Test 09-textfield.py: > 1. All textfields have black area at right & bottom. > 2. For multiline textfield, the black are is not painted over during > repaint. > 3. Textfields no not have XP style borders. > > Test 15-dialog.py: > 1. Alt+F4 does not work. However Ctrl+Q works fine. > 2. Initially keyboard navigation is not possible. Once a button is > clicked, > it is focused and keyboard navigation is possible. > 2. If Cancel button has focus, pressing Enter should print Cancel. > Currently > it prints OK. > 3. Pressing spacebar should activate focused button. > > Test 18-exceptions.py: > 1. Printing traceback to console is not sufficient on windows. > > Test 29-slider.py: > 1. Defenitions of 'live' and 'non-live' are swapped in the printed > message. > > Test 33-mouse-events.py: > 1. mouse-enter and mouse-leave events are not reported. > > Test 37-image-cursor.py: > 1. Mouse pointer hotspot is in the middle of the image. > > Test 38-keys.py: > 1. Key combinations with Ctrl & Alt are not detected properly. > 2. Scroll-lock is reported as f14 > 3. Pause/Break is reported as f15 > 4. Caps-lock & Num-lock are detected as keycodes but 'key' is not > reported. > > Regards, > Suraj As Suraj sugguested, I deleted the __init__.py file. After that I had no problem running these test files. But when I ran the blobedit demo, it raied attributeNotFoundException. -- http://mail.python.org/mailman/listinfo/python-list
