Update of /cvsroot/wnd/wnd/wnd/api
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8607
Modified Files:
msgbox.py
Log Message:
bufix hwnd param
Index: msgbox.py
===================================================================
RCS file: /cvsroot/wnd/wnd/wnd/api/msgbox.py,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** msgbox.py 29 Apr 2005 15:19:52 -0000 1.1.1.1
--- msgbox.py 18 May 2005 19:28:47 -0000 1.2
***************
*** 49,52 ****
--- 49,54 ----
def Msg(hwnd, message, title, *styles):
if not hwnd: hwnd=0
+ if not isinstance(hwnd, (int, long)):
+ raise ValueError, "eror arg1, hwnd required, found type:" % type(hwnd)
style= 0
for i in styles:
|