ANN: PyGUI 2.0.1

U

user

Greg said:
PyGUI 2.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 is PyGUI?

Greg

I installed PyGUI-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..... 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
 
A

Andrew MacKeith

Greg said:
PyGUI 2.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 is PyGUI?

I installed PyGUI-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..... 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
 
F

fyaqq

I got the same error too.
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
 
S

Suraj Barkale

Greg Ewing said:
PyGUI 2.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
 
F

fyaqq

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.
 
G

greg

Suraj said:
I installed this and tried out the tests on Python 2.6.1 and Windows XP
SP3. Following are my observations.

Thanks, I'll look into these.
Test 33-mouse-events.py:
1. mouse-enter and mouse-leave events are not reported.

That's actually expected on Windows -- I couldn't find
any way of implementing these.
Test 37-image-cursor.py:
1. Mouse pointer hotspot is in the middle of the image.

That's okay too, it's meant to be there.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

ANN: PyGUI 2.3 7
ANN: PyGUI 2.3.2 0
ANN: PyGUI 2.4 0
ANN: PyGUI 2.0.4 5
ANN: PyGUI 2.2 0
ANN: PyGUI 2.1 2
ANN: PyGUI 2.5 7
ANN: PyGUI 2.3.1 0

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top