summaryrefslogtreecommitdiffstats
path: root/Modules/stdwinmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* >>Boing!<<Guido van Rossum2000-05-031-2664/+0
| | | | Finally, this long-obsolete module bites the dust.
* Thanks to Chris Herborth, the thread primitives now have proper Py*Guido van Rossum1998-12-211-5/+5
| | | | | names in the source code (they already had those for the linker, through some smart macros; but the source still had the old, un-Py names).
* Add DL_EXPORT() to all modules that could possibly be usedGuido van Rossum1998-12-041-1/+1
| | | | on BeOS or Windows.
* Use the t# format where appropriate. Greg Stein.Guido van Rossum1998-10-081-6/+6
|
* Renamed thread.h to pythread.h.Guido van Rossum1998-10-011-1/+1
|
* Add getintarg(), getlongarg(), getstrarg() to macros since these noGuido van Rossum1997-10-201-0/+3
| | | | longer exist in the general headers.
* Apply two changes, systematically:Guido van Rossum1997-10-011-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!
* Renamed, but *not* tested or compiled. I don't even have the STDWINBarry Warsaw1996-12-121-786/+791
| | | | library.
* New permission notice, includes CNRI.Guido van Rossum1996-10-251-13/+20
|
* Shuffled include's around (name conflict on Mac wrt teclick())Jack Jansen1995-08-141-4/+3
|
* changes for MPWGuido van Rossum1995-03-091-4/+4
|
* Changed the way mac mainloop event checking is turned offJack Jansen1995-01-271-2/+4
|
* Added a global 'stdwin is active' flag.Jack Jansen1995-01-261-0/+3
|
* unused varsGuido van Rossum1995-01-261-2/+1
|
* Added 1995 to copyright message.Guido van Rossum1995-01-041-2/+2
| | | | | Setup.in: clarified Tk comments somewhat. structmodule.c: use memcpy() instead of double precision assignment.
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-011-110/+116
|
* * import.c (get_module): total rewrite, to ensure proper search order: forGuido van Rossum1993-11-171-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].
* * stdwinmodule.c (stdwin_done): interface to shutdown stdwin (now this isGuido van Rossum1993-10-181-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.
* Final touch before release.Guido van Rossum1993-07-291-1/+16
|
* * Added gmtime/localtime/mktime and SYSV timezone globals to timemodule.c.Guido van Rossum1993-06-171-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().
* * stdwinmodule.c: various new commands: setwin{pos,size},Guido van Rossum1993-02-081-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.
* * Added Fixcprt.py: script to fix copyright message.Guido van Rossum1993-01-261-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
* Added separate main program for the Mac: macmain.cGuido van Rossum1993-01-211-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
* * Makefile: added IMGFILE; moved some stuff around.Guido van Rossum1992-09-171-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.
* classobject.c moduleobject.c stdwinmodule.c xxobject.c:Guido van Rossum1992-09-041-6/+21
| | | | | raise AttributeError, not KeyError, when attribute deletion fails. sunaudiodevmodule.c: check for deletion before calling setmember.
* * Makefile: cosmeticsGuido van Rossum1992-08-051-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
* added WE_KEY detail format to stdwinmodule.c.Guido van Rossum1992-06-301-0/+6
|
* Changes for new UNIX-specific built-in module 'select' and new header forGuido van Rossum1992-06-231-0/+16
| | | | | interfaces to variants of select() system call, "myselect.h". This includes adding fileno() methods to files, sockets and stdwin.
* Use mkvalue() instead of painfully constructing valuesGuido van Rossum1992-04-131-80/+12
|
* Copyright for 1992 addedGuido van Rossum1992-04-051-1/+1
|
* Fixed getargs() call in setfont.Guido van Rossum1992-02-051-6/+10
| | | | Improved setwincursor() to allow None to explicitly turn the cursor off.
* Use getargs() function.Guido van Rossum1992-01-271-153/+123
|
* Add method to call wsetactive(win).Guido van Rossum1992-01-261-0/+13
|
* Added close method for menus.Guido van Rossum1992-01-141-8/+45
| | | | Check for closed objects in getattr (not perfect, but better).
* Change errors into new StdwinError.Guido van Rossum1991-12-161-11/+11
|
* Use new exceptions.Guido van Rossum1991-12-101-8/+9
|
* Enclosed method lists in braces.Guido van Rossum1991-11-271-24/+82
| | | | Added close methods to various object types.
* Added __dict__ attributes all over the place.Guido van Rossum1991-10-201-18/+36
|
* Added getxwindowin() methodGuido van Rossum1991-07-271-0/+14
|
* printobject now returns an error codeGuido van Rossum1991-06-071-1/+2
|
* Don't suppress wsetfont("");Guido van Rossum1991-06-031-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.
* Added text.setactive and text.setview.Guido van Rossum1991-05-281-5/+37
| | | | Moved some functions around.
* Added xor functions.Guido van Rossum1991-05-141-9/+46
| | | | Hide/show focus hacks around tedraw are no longer needed.
* Added many new functionsGuido van Rossum1991-05-051-10/+71
|
* Add filled drawing methods and polygon methods.Guido van Rossum1991-04-161-26/+118
| | | | | | | Sort some method lists. Increase max #menus, and give more reasonable error message if exceeded. Remove window setfont method.
* Fix window.setfont() to call drawing_setfont internally.Guido van Rossum1991-04-041-6/+3
|
* More flexible font setting (mainly for the Mac).Guido van Rossum1991-04-041-4/+47
|
* Added font, color and default scroll bars interfaces.Guido van Rossum1991-04-031-1/+141
|
* Return value of drawing_generic was ignored! Foo!Guido van Rossum1991-03-061-7/+7
|
* Added copyright notice.Guido van Rossum1991-02-191-0/+24
|