Re: [PythonCE] DLL hourglass in ctypes

2008-08-13 Thread Adam Walley
Just one more note on this. Having tinkered a little with ppygui, I decided that although it is a very fine package, it would not really help with what I am aiming for - mainly because it is event based, whereas pygame apps would tend to need 'real-time' interaction, rather than waiting for the use

Re: [PythonCE] DLL hourglass in ctypes

2008-08-13 Thread Adam Walley
Well, my initial question certainly seems to have stirred some interest. Thanks to everyone for the input. I think what I can draw from all this is that: 1. The hourglass/busy icon is useful to give users an indication of when the application is busy 'grinding' away at something and user input is

Re: [PythonCE] DLL hourglass in ctypes

2008-08-12 Thread John Hampton
Brad Clements wrote: I think according to the Windows CE compatibility guide, you're supposed to show the hourglass until your application is "ready for user input". I believe it's up to the application .py file, not any libraries or interpreter, to make the Busy(0) call. Only the applicati

Re: [PythonCE] DLL hourglass in ctypes

2008-08-12 Thread Brad Clements
Christopher Fairbairn wrote: They use code along the lines of: import _pcceshell_support _pcceshell_support.Busy(0); I haven't liked this, since it means each library needs to be aware of something PythonCE specific. For cleaness I think the native C part of the Python interpreter can (an

Re: [PythonCE] DLL hourglass in ctypes

2008-08-12 Thread Christopher Fairbairn
Hi, On Wed 13/08/08 05:43 , "Adam Walley" [EMAIL PROTECTED] sent: > My question is about the hourglass which appears on the screen while > my script is running (in WM5 it's actually not an hourglass, but a > kind of circular dial with windows colours). This is caused by a design decision from the

Re: [PythonCE] DLL hourglass in ctypes

2008-08-12 Thread Brad Clements
Adam Walley wrote: My question is about the hourglass which appears on the screen while my script is running (in WM5 it's actually not an hourglass, but a kind of circular dial with windows colours). Is there any way I can prevent this from appearing while my python script runs? I do not

[PythonCE] DLL hourglass in ctypes

2008-08-12 Thread Adam Walley
Hello, I am reporting back after some experimenting with building a DLL based on the SDL library. I have successfully created a very simple DLL that accepts 5 int values (color, x,y,w,h) and uses the SDL_RectFill function to draw directly to the screen. Then I use ctypes to import the DLL into pyt