On Tue, Jun 21, 2011 at 8:53 PM, Greg Ewing <[email protected]>wrote:

> If anyone would like to see a substantial application built with
> PyGUI, you might like to take a look at my latest game, currently
> posted on the Pyggy Awards site:
>
> http://pyggy.pyweek.org/e/SimChip/
>
> Any feedback you care to provide on the game would be welcome
> as well. :-)
>
> --
> Greg
>


I found some problems:

1. pyGUI won't install

D:\tmp\greg\pygui\PyGUI-2.5>setup.py install
Traceback (most recent call last):
File "D:\tmp\greg\pygui\PyGUI-2.5\setup.py", line 12, in <module>
from distutils_extensions import pygui_build_py
ImportError: No module named distutils_extensions

To run the game I copied PyGUI-2.5\GUI to the gamedir, at the same level
that run_game.py


2. I see strange behavior when SimChip loses focus. Details:

Way 1:
start notepad
start game from console
A small window offers selection 'New game', 'load game', 'quit'. Select 'new
game'
Two windows appears, one with the tutorial, another with the game, focus is
in the tutorial
click the tittlebar of game window to move focus; [seems to work, in the
sense it goes top window]
switch to notepad instance (clicking the icon in toolbar), or to the console
that started the game: the app silently dies, the console showing:

D:\tmp\greg\SimChip-1.0>run_game.py
GWindow.center


Way 2:

start notepad
start app from console
A small window offers selection 'New game', 'load game', 'quit'. Select 'new
game'
Two windows appears, one with the tutorial, another with the game, focus is
in the tutorial
advance tutorial to 'experiment 1'
switch focus to game window
switch focus to notepad (clicking in the toolbar) or to console:
A message box shows, title == 'SimChip', msg='Save changes to SimChipGame',
with three buttons 'dont save', 'save', 'cancel'

At this point the console that started the game shows:
D:\tmp\greg\SimChip-1.0>run_game.py
GWindow.center
GWindow.center
GWindow.center

Clicking 'Cancel' does not get rid of message box, the console shows:

D:\tmp\greg\SimChip-1.0>run_game.py
GWindow.center
GWindow.center
GWindow.center
GWindow.center
GWindow.center
(null)
Traceback (most recent call last):
File "D:\tmp\greg\SimChip-1.0\GUI\Win32\Task.py", line 48, in OnTimer
application()._win_idle()
File "D:\tmp\greg\SimChip-1.0\GUI\Win32\Application.py", line 66, in
_win_idle

self._check_for_no_windows()
File "D:\tmp\greg\SimChip-1.0\GUI\Win32\Application.py", line 71, in
_check_fo
r_no_windows
self.no_visible_windows()
File "D:\tmp\greg\SimChip-1.0\GUI\Generic\GApplications.py", line 547, in
no_v
isible_windows
self.quit_cmd()
File "D:\tmp\greg\SimChip-1.0\GUI\Generic\GApplications.py", line 266, in
quit
_cmd
self._documents[0].close_cmd()
File "D:\tmp\greg\SimChip-1.0\GUI\Generic\Document.py", line 203, in
close_cmd

self.save_changes()
File "D:\tmp\greg\SimChip-1.0\GUI\Generic\Document.py", line 170, in
save_chan
ges
raise Cancel
GUI.Exceptions.Cancel
(null)
win32ui.error: OnTimer() virtual handler (<bound method TimerWnd.OnTimer of
<GUI
.Task.TimerWnd object at 0x014CE8B0>>) raised an exception
GWindow.center
GWindow.center
GWindow.center
GWindow.center

(the message box never closes, and new identical message boxes are generated
by clicking the message box icon in the toolbar and then another window)

Way 3:

do as in Way 2, but in message box click the 'save' button:
a Save File pops up, and it allows to save ( seems to be a pickle)
apps terminates, nothing significant in console:

D:\tmp\greg\SimChip-1.0>run_game.py
GWindow.center
GWindow.center
GWindow.center


way 4:

do as in way 2, but in message box click the "don't save button"
app terminates, console as in way 3


Other info:
windows xp sp3 32 bits
python 2.6.5

PyWin32 version:
dont know how to query the module(s) for the version; in site packages there
is a file named pywin32.version.txt, it contains the string 214.

Downloaded and installed the last available pywin32
(pywin32-216.win32-py2.6.exe), the string changed to 216.
Same defects seen in the game, the 'Cancel' traceback is different:

D:\tmp\greg\SimChip-1.0>run_game.py
GWindow.center
GWindow.center
GWindow.center
(null)
Traceback (most recent call last):
File "D:\tmp\greg\SimChip-1.0\GUI\Win32\Application.py", line 62, in OnIdle
self._win_idle()
File "D:\tmp\greg\SimChip-1.0\GUI\Win32\Application.py", line 66, in
_win_idle

self._check_for_no_windows()
File "D:\tmp\greg\SimChip-1.0\GUI\Win32\Application.py", line 71, in
_check_fo
r_no_windows
self.no_visible_windows()
File "D:\tmp\greg\SimChip-1.0\GUI\Generic\GApplications.py", line 547, in
no_v
isible_windows
self.quit_cmd()
File "D:\tmp\greg\SimChip-1.0\GUI\Generic\GApplications.py", line 266, in
quit
_cmd
self._documents[0].close_cmd()
File "D:\tmp\greg\SimChip-1.0\GUI\Generic\Document.py", line 203, in
close_cmd

self.save_changes()
File "D:\tmp\greg\SimChip-1.0\GUI\Generic\Document.py", line 170, in
save_chan
ges
raise Cancel
GUI.Exceptions.Cancel
(null)
win32ui.error: OnIdle() virtual handler (<bound method SC2Application.OnIdle
of
<application.SC2Application object at 0x015BFBB0>>) raised an exception
GWindow.center
GWindow.center
GWindow.center
GWindow.center


Feel free to ask for clarification

--
claudio

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to