summaryrefslogtreecommitdiff
path: root/Modules/stdwinmodule.c
AgeCommit message (Collapse)AuthorLines
1997-10-20Add getintarg(), getlongarg(), getstrarg() to macros since these noGuido van Rossum-0/+3
longer exist in the general headers.
1997-10-01Apply two changes, systematically:Guido van Rossum-4/+2
(1) Use PyErr_NewException("module.class", NULL, NULL) to create the exception object. (2) Remove all calls to Py_FatalError(); instead, return or ignore the errors -- the import code now checks PyErr_Occurred() after calling a module's init function, so it's no longer a fatal error for the initialization to fail. Also did some small cleanups, e.g. removed unnecessary test for "already initialized" from initfpectl(), and unified initposix()/initnt(). I haven't checked this very thoroughly, so while the changes are pretty trivial -- beware of untested code!
1996-12-12Renamed, but *not* tested or compiled. I don't even have the STDWINBarry Warsaw-784/+789
library.
1996-10-25New permission notice, includes CNRI.Guido van Rossum-12/+19
1995-08-14Shuffled include's around (name conflict on Mac wrt teclick())Jack Jansen-4/+3
1995-03-09changes for MPWGuido van Rossum-4/+4
1995-01-27Changed the way mac mainloop event checking is turned offJack Jansen-2/+4
1995-01-26Added a global 'stdwin is active' flag.Jack Jansen-0/+3
1995-01-26unused varsGuido van Rossum-2/+1
1995-01-04Added 1995 to copyright message.Guido van Rossum-2/+2
Setup.in: clarified Tk comments somewhat. structmodule.c: use memcpy() instead of double precision assignment.
1994-08-01Merge alpha100 branch back to main trunkGuido van Rossum-110/+116
1993-11-17* import.c (get_module): total rewrite, to ensure proper search order: forGuido van Rossum-0/+13
each dir in sys.path, try each possible extension. (Note: C extensions are loaded before Python modules in the same directory, to allow having a C version used when dynamic loading is supported and a Python version as a back-up.) * import.c (reload_module): test for error from getmodulename() * moduleobject.c: implement module name as dict entry '__name__' instead of special-casing it in module_getattr(); this way a module (or function!) can access its own module name, and programs that know what they are doing can rename modules. * stdwinmodule.c (initstdwin): strip ".py" suffix of argv[0].
1993-10-18* stdwinmodule.c (stdwin_done): interface to shutdown stdwin (now this isGuido van Rossum-1/+90
no longer done by config.c). * stdwinmodule.c (initstdwin), config.c (initall): get command line arguments from sys.argv instead of special-casing stdwin in config.c * import.c (get_module): fix core dump when foomodule.o does not define initfoo(). * ChangeLog: documented changes by Sjoerd.
1993-07-29Final touch before release.Guido van Rossum-1/+16
1993-06-17* Added gmtime/localtime/mktime and SYSV timezone globals to timemodule.c.Guido van Rossum-8/+17
Added $(SYSDEF) to its build rule in Makefile. * cgensupport.[ch], modsupport.[ch]: removed some old stuff. Also changed files that still used it... And made several things static that weren't but should have been... And other minor cleanups... * listobject.[ch]: add external interfaces {set,get}listslice * socketmodule.c: fix bugs in new send() argument parsing. * sunaudiodevmodule.c: added flush() and close().
1993-02-08* stdwinmodule.c: various new commands: setwin{pos,size},Guido van Rossum-0/+275
listfontnames, bitmap ops. * listobject.c: use mkvalue() when possible; avoid weird error when calling append() without args. * modsupport.c: new feature in getargs(): if the format string contains a semicolor the string after that is used as the error message instead of "bad argument list (format %s)" when there's an error.
1993-01-26* Added Fixcprt.py: script to fix copyright message.Guido van Rossum-1/+9
* various modules: added 1993 to copyright. * thread.c: added copyright notice. * ceval.c: minor change to error message for "+" * stdwinmodule.c: check for error from wfetchcolor * config.c: MS-DOS fixes (define PYTHONPATH, use DELIM, use osdefs.h) * Add declaration of inittab to import.h * sysmodule.c: added sys.builtin_module_names * xxmodule.c, xxobject.c: fix minor errors
1993-01-21Added separate main program for the Mac: macmain.cGuido van Rossum-4/+12
stdwinmodule.c: wsetfont can now return an error Makefile: add CL_USE and CL_LIB*S; config.c: move CL part around New things in imgfile; also in Makefile. longobject.c: fix comparison of negative long ints... [REAL BUG!] marshal.c: add dumps() and loads() to read/write strings timemodule.c: make sure there's always a floatsleep() posixmodule.c: rationalize struct returned by times() Makefile: add test target, disable imgfile by default thread.c: Improved coexistance with dl module (sjoerd) stdwinmodule.c: Change include stdwin.h if macintosh rotormodule.c: added missing last argument to RTR_?_region calls confic.c: merged with configmac.c, added 1993 to copyright message fileobject.c: int compared to NULL in writestring(); change fopenRF ifdef timemodule.c: simplify times() using mkvalue; include myselect.h earlier (for sequent). posixmodule: for sequent, include unistd.h instead of explicit extern definitions and don't define rename() Makefile: change misleading/wrong MD5 comments
1992-09-17* Makefile: added IMGFILE; moved some stuff around.Guido van Rossum-13/+1
* flmodule.c: added some missing functions; changed readonly flags of some data members based upon FORMS documentation. * listobject.c: fixed int/long arg lint bug (bites PC compilers). * several: removed redundant print methods (repr is good enough). * posixmodule.c: added (still experimental) process group functions.
1992-09-04classobject.c moduleobject.c stdwinmodule.c xxobject.c:Guido van Rossum-6/+21
raise AttributeError, not KeyError, when attribute deletion fails. sunaudiodevmodule.c: check for deletion before calling setmember.
1992-08-05* Makefile: cosmeticsGuido van Rossum-1/+35
* socketmodule.c: get rid of makepair(); fix makesocketaddr to fix broken recvfrom() * socketmodule: get rid of getStrarg() * ceval.h: move eval_code() to new file eval.h, so compile.h is no longer needed. * ceval.c: move thread comments to ceval.h; always make save/restore thread functions available (for dynloaded modules) * cdmodule.c, listobject.c: don't include compile.h * flmodule.c: include ceval.h * import.c: include eval.h instead of ceval.h * cgen.py: add forground(); noport(); winopen(""); to initgl(). * bltinmodule.c, socketmodule.c, fileobject.c, posixmodule.c, selectmodule.c: adapt to threads (add BGN/END SAVE macros) * stdwinmodule.c: adapt to threads and use a special stdwin lock. * pythonmain.c: don't include getpythonpath(). * pythonrun.c: use BGN/END SAVE instead of direct calls; also more BGN/END SAVE calls etc. * thread.c: bigger stack size for sun; change exit() to _exit() * threadmodule.c: use BGN/END SAVE macros where possible * timemodule.c: adapt better to threads; use BGN/END SAVE; add longsleep internal function if BSD_TIME; cosmetics
1992-06-30added WE_KEY detail format to stdwinmodule.c.Guido van Rossum-0/+6
1992-06-23Changes for new UNIX-specific built-in module 'select' and new header forGuido van Rossum-0/+16
interfaces to variants of select() system call, "myselect.h". This includes adding fileno() methods to files, sockets and stdwin.
1992-04-13Use mkvalue() instead of painfully constructing valuesGuido van Rossum-80/+12
1992-04-05Copyright for 1992 addedGuido van Rossum-1/+1
1992-02-05Fixed getargs() call in setfont.Guido van Rossum-6/+10
Improved setwincursor() to allow None to explicitly turn the cursor off.
1992-01-27Use getargs() function.Guido van Rossum-153/+123
1992-01-26Add method to call wsetactive(win).Guido van Rossum-0/+13
1992-01-14Added close method for menus.Guido van Rossum-8/+45
Check for closed objects in getattr (not perfect, but better).
1991-12-16Change errors into new StdwinError.Guido van Rossum-11/+11
1991-12-10Use new exceptions.Guido van Rossum-8/+9
1991-11-27Enclosed method lists in braces.Guido van Rossum-24/+82
Added close methods to various object types.
1991-10-20Added __dict__ attributes all over the place.Guido van Rossum-18/+36
1991-07-27Added getxwindowin() methodGuido van Rossum-0/+14
1991-06-07printobject now returns an error codeGuido van Rossum-1/+2
1991-06-03Don't suppress wsetfont("");Guido van Rossum-28/+47
Don't report WE_MENU events with None as menu pointer; Added stdwin.getactie() function; Moved code to turn WINDOW* into windowobject* to a separate function.
1991-05-28Added text.setactive and text.setview.Guido van Rossum-5/+37
Moved some functions around.
1991-05-14Added xor functions.Guido van Rossum-9/+46
Hide/show focus hacks around tedraw are no longer needed.
1991-05-05Added many new functionsGuido van Rossum-10/+71
1991-04-16Add filled drawing methods and polygon methods.Guido van Rossum-26/+118
Sort some method lists. Increase max #menus, and give more reasonable error message if exceeded. Remove window setfont method.
1991-04-04Fix window.setfont() to call drawing_setfont internally.Guido van Rossum-6/+3
1991-04-04More flexible font setting (mainly for the Mac).Guido van Rossum-4/+47
1991-04-03Added font, color and default scroll bars interfaces.Guido van Rossum-1/+141
1991-03-06Return value of drawing_generic was ignored! Foo!Guido van Rossum-7/+7
1991-02-19Added copyright notice.Guido van Rossum-0/+24
1991-02-19Call winit() here instead of in main initialization.Guido van Rossum-10/+16
1991-02-13Add getdefwinpos, getdefwinsize;Guido van Rossum-3/+35
and improve mouse clipping for textedit blocks.
1991-01-16Added pollevent(); returns None if no event available.Guido van Rossum-8/+38
Don't throw away key events with no window.
1990-12-20"Compiling" versionGuido van Rossum-13/+2
1990-11-06Turn close commands into WE_CLOSE events.Guido van Rossum-13/+7
Remove (broken) compatibility hacks from cutbuffer interface.