Re: ANN: PyGUI 2.0.1

2009-04-17 Thread Thomas Heller
greg schrieb:
 Suraj Barkale wrote:
 
 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.

Maybe this can help:

http://blogs.msdn.com/oldnewthing/archive/2003/10/13/55279.aspx

 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.
 


Thomas
--
http://mail.python.org/mailman/listinfo/python-list


Re: ANN: PyGUI 2.0.1

2009-04-16 Thread fyaqq
On 4月16日, 上午3时05分, Suraj Barkale su...@barkale.com wrote:
 Greg Ewing greg.ewing at 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


Re: ANN: PyGUI 2.0.1

2009-04-16 Thread greg

Suraj Barkale wrote:


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.

--
Greg

--
http://mail.python.org/mailman/listinfo/python-list


Re: ANN: PyGUI 2.0.1

2009-04-15 Thread fyaqq
I got the same error too.
On 4月14日, 上午2时47分, Andrew MacKeith and...@mackeith.net 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\pyGUIc:\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

--
http://mail.python.org/mailman/listinfo/python-list


Re: ANN: PyGUI 2.0.1

2009-04-15 Thread Suraj Barkale
Greg Ewing greg.ewing at canterbury.ac.nz writes:
 
 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


--
http://mail.python.org/mailman/listinfo/python-list


Re: ANN: PyGUI 2.0.1

2009-04-13 Thread roee shlomo
I can't run any of the tests on windows (pywin32-213, XP SP3, Python 2.6.1).

1. Had to change the first line in Applications.py to :

 import win32con as wc, win32ui as ui, win32clipboard as wcb, win32api as
 api

Otherwise it gives me a DLL Import error. I have no idea why.
2. Import fails in Components.py because

 from Win32 import win_none

tries to import win_none from the Win32 package, not the module, so I got

 ImportError: This should not be imported.


Thanks,
Roee.

On Mon, Apr 13, 2009 at 4:26 AM, Greg Ewing greg.ew...@canterbury.ac.nzwrote:

 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?
 --

 PyGUI is a cross-platform GUI toolkit designed to be lightweight
 and have a highly Pythonic API.

 --
 Gregory Ewing
 greg.ew...@canterbury.ac.nz
 http://www.cosc.canterbury.ac.nz/greg.ewing/
 --
 http://mail.python.org/mailman/listinfo/python-list

--
http://mail.python.org/mailman/listinfo/python-list


Re: ANN: PyGUI 2.0.1

2009-04-13 Thread user

Greg Ewing wrote:

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?
--

PyGUI is a cross-platform GUI toolkit designed to be lightweight
and have a highly Pythonic API.



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\pyGUIc:\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
--
http://mail.python.org/mailman/listinfo/python-list


Re: ANN: PyGUI 2.0.1

2009-04-13 Thread Andrew MacKeith


Greg Ewing wrote:

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?
--

PyGUI is a cross-platform GUI toolkit designed to be lightweight
and have a highly Pythonic API.



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\pyGUIc:\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
--
http://mail.python.org/mailman/listinfo/python-list


ANN: PyGUI 2.0.1

2009-04-12 Thread Greg Ewing

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?
--

PyGUI is a cross-platform GUI toolkit designed to be lightweight
and have a highly Pythonic API.

--
Gregory Ewing
greg.ew...@canterbury.ac.nz
http://www.cosc.canterbury.ac.nz/greg.ewing/
--
http://mail.python.org/mailman/listinfo/python-list