Commit Graph

465 Commits

Author SHA1 Message Date
Jack Jansen ba24ace0fb Obsolete, superseded by :Mac:Demo:TE 2001-08-03 13:53:50 +00:00
Jack Jansen 5291fb1e09 Obsolete, superseded by :Mac:Demo:waste 2001-08-03 13:53:17 +00:00
Jack Jansen 1cd95229a2 Obsolete, removed. 2001-08-03 13:49:52 +00:00
Jack Jansen cbed91b4db Merging appropriate 2.1.1 fixes back into the main trunk. 2001-08-03 13:31:36 +00:00
Jack Jansen 8d2f3d66ee ProgressBar crashed when you tried to drag it. Fixed. Thanks go to Alfonso Baciero. 2001-07-27 09:21:28 +00:00
Jack Jansen 5bb6ff926b Changed findertools.move() to move() in movetotrash. 2001-07-24 11:37:23 +00:00
Jack Jansen e1608529d1 The constants for MLTE. 2001-07-14 13:59:47 +00:00
Just van Rossum 639a740e50 Fixed typo in doc string. 2001-06-26 06:57:12 +00:00
Jack Jansen 6f84ed5afc Fixed macroman<->latin1 conversion. Some chars don't
exist in latin1, but at least the roundtrip results in the
same macroman characters.
2001-05-17 12:45:13 +00:00
Jack Jansen c1218bc014 Files for 2.1 distribution. 2001-04-25 22:11:24 +00:00
Jack Jansen 43935128a4 Finally merged morefindertools into findertools. 2001-04-07 12:53:45 +00:00
Jack Jansen 3f4c173d5c Oops, ISO translation was off. Fixed. 2001-03-27 21:32:34 +00:00
Jack Jansen 5c82d13e1f FindFolder argument is a short, not an unsigned short.
Added kLocalDomain and friends.
2001-03-15 14:39:37 +00:00
Jack Jansen 6b498de165 Handle the apple menu differently under Carbon. 2001-03-15 14:39:03 +00:00
Jack Jansen e5c9474f0f Default waittime in the eventloop is now None. At low level it will then be set to GetCaretTime(). 2001-03-08 23:10:37 +00:00
Jack Jansen c1463c9870 macostools.copy() now has an optional forcetype flag, which sets the filetype. This is used by various tools to set the type to APPL when copying interpreter template files (Atmp filetype). 2001-03-06 22:46:25 +00:00
Jack Jansen 5dd7362295 Hide the ProgressBar before raising KeyboardInterrupt. Not doing so resulted in a hang on Carbon. 2001-02-23 22:18:27 +00:00
Jack Jansen a4f8e58058 Allow selecting a template in findtemplate(), so Classic programs can build Carbon applets and vice-versa. 2001-02-17 23:30:19 +00:00
Jack Jansen ed24cd2cf7 DialogWindows now have a self.dlg in addition to self.wid. 2001-02-14 17:07:04 +00:00
Jack Jansen 3ff82a3a4c The new touched() was far too expensive. Re-enabled the old one, the ae-based one is available as touched_ae(). Have to read up on the subject of telling the finder about changes. 2001-02-14 17:06:32 +00:00
Jack Jansen 26d813e42c Got rid of full pathnames in "generated from" comments, so that these files are the same no mater which machine they've been generated on. 2001-02-12 16:09:44 +00:00
Jack Jansen 8a38714ba0 Bit the bullet and added a private GUSISIOUX for Python. This makes the delayconsole and keepopen code neater. Also tells Sioux to behave better with events, and handles cmd-. during print better. The pythonpreferences have also changed due to this. 2001-02-11 01:08:04 +00:00
Jack Jansen 7e31f68bf1 Replaced touched(), which no longer seems to work under os9, with something using an appleevent to the finder. More expensive, but at least it works:-) 2001-02-09 15:58:34 +00:00
Jack Jansen 34f83b3f56 Added a few constants. 2001-02-09 15:57:53 +00:00
Jack Jansen 784c611053 Dialogs and there windows were still confused in some spots. Fixed. 2001-02-09 15:57:01 +00:00
Jack Jansen def0d8da5a Get rid of from ... import * 2001-02-09 15:56:19 +00:00
Jack Jansen 01a2d9e281 Use FSpCreateResFile() in stead of CreateResFile().
Don't call OpenDeskAcc() and AppendResMenu() on Carbon.
2001-01-29 15:32:00 +00:00
Jack Jansen afd0aa680a Replace {Enable,Disable,Check}Item with their carbon-compatible equivalents {Enable,Disable,Check}MenuItem. 2001-01-29 13:29:47 +00:00
Jack Jansen 5a8115c94b Ported the icglue module to carbon. 2001-01-29 13:27:46 +00:00
Jack Jansen 4a4adf4293 Recognize {compiler} and {project} prefixes to pathnames and output the correct XML. 2001-01-24 16:04:50 +00:00
Jack Jansen b51362163a Removed extraneous references to Modules:TE 2001-01-23 23:19:13 +00:00
Jack Jansen 6abe676538 Various settings were unconditionally set. Allow them to be overridden in the settings dict. 2001-01-23 22:35:22 +00:00
Jack Jansen 50f6f6f621 If the template is not specified it depends on the current execution model (classic ppc or carbon). 2001-01-23 22:34:50 +00:00
Jack Jansen 6ecf14639d Added a template for Carbon plugin projects. 2001-01-23 22:33:31 +00:00
Jack Jansen a106f82e4e Moved files from template to template-ppc, as this is the template for classic PPC projects. 2001-01-23 22:33:01 +00:00
Jack Jansen 842818422b Use &# escape for non-ascii chars. 2001-01-23 20:56:25 +00:00
Jack Jansen 7302340436 Sigh... First test before committing. InvalWindowRect and friends are window object methods. Fixed. 2001-01-23 14:58:20 +00:00
Jack Jansen d829e9e8e3 Replaced InvalRect and friends with the Carbon-compliant InvalWindowRect. 2001-01-23 14:34:49 +00:00
Jack Jansen af4c942b8a Better test for skipping project creation: the project file should also exist and be newer than the xml file, and the .exp should exist. 2001-01-22 15:38:40 +00:00
Jack Jansen 441dea5f32 It's SetControlData_Handle, not SetControl_DataHandle. 2001-01-22 14:49:28 +00:00
Jack Jansen d6389956cb Don't generate project if the XML file already exists and is identical to what we've generated. Overridable with a "force" argument to mkproject(). 2001-01-21 22:23:13 +00:00
Jack Jansen e7bfc915da Carbon defines {Get,Set}ControlDataHandle, so unfortunately our variants on {Get,Set}ControlData have gotten an underscore: GetControlData_Handle, etc. 2001-01-09 22:22:58 +00:00
Jack Jansen a9e3db354d Carbon defines {Get,Set}ControlDataHandle, so unfortunately our variants on {Get,Set}ControlData have gotten an underscore: GetControlData_Handle, etc. This is an incompatible change:-( 2001-01-09 22:10:16 +00:00
Jack Jansen b55e5f1b62 Fixed a few declarations. 2001-01-03 16:44:27 +00:00
Jack Jansen e396c04832 struct.pack wants H for unsigned shorts, not h. 2001-01-03 11:14:12 +00:00
Jack Jansen 5a95e42841 Updated for new universal headers (oops... this was loooong due). 2001-01-01 22:58:20 +00:00
Jack Jansen 620e914266 Blacklisted a few constants with funny definitions (and they're not important anyway: backward compatible error numbers). 2000-12-19 21:33:51 +00:00
Jack Jansen 6fe608c840 Regenerated from Universal Headers 3.3.2 2000-12-12 22:08:00 +00:00
Jack Jansen 177fa8c25e Put all AE constants into AppleEvents.py 2000-12-12 22:06:53 +00:00
Jack Jansen 0eba959ed3 Added an extraexportsymbols option, to allow (you guessed it:-) extra export symbols to be specified. 2000-12-03 22:39:09 +00:00
Jack Jansen aee9d6b73e Allow recursive searh entries by ending the pathname in ":*". 2000-12-03 22:38:34 +00:00
Jack Jansen cb9b1ebe6c Don't generate SYM files by default. 2000-12-03 22:37:32 +00:00
Jack Jansen cb54be869c Added support for adding libraries.
Added support for project-relative and absolute path names in the search path entries.
2000-11-26 23:02:38 +00:00
Jack Jansen 707e964734 Added MathLib and InterfaceLib. Added Python:Include so #include "package/file.h" works. Moved bits around so now at least Numeric with Distutils builds and instals. 2000-11-19 21:53:15 +00:00
Jack Jansen 6f484cb25a Close the project after building it, so that building umpteen projects doesn't keep all the projects open. 2000-11-19 21:51:06 +00:00
Jack Jansen 185f42d917 struct.pack has become picky about h (short) and H (unsigned short). 2000-10-22 21:59:23 +00:00
Jack Jansen 62e3843ca7 Removed try/except TypeError around calling the ae handler function, it masksprogrammer errors and obfuscates the stacktrace. Suggested by Tattoo Mabonzo K. 2000-10-19 20:49:12 +00:00
Jack Jansen 749023695e Use MacOS.OutputSeen() on menuselections: it treats a menu selection in the same way as input to stdin (i.e. as an ack of the output that went before). This makes the CGI tools work nicely for Quit. 2000-10-19 20:32:35 +00:00
Jack Jansen fd9925af56 Use MacOS.OutputSeen() on menuselections. Removed KeepConsole code again. This solution is better: it treats a menu selection in the same way as input to stdin (i.e. as an ack of the output that went before). 2000-10-19 20:31:51 +00:00
Jack Jansen f2bd9ee357 Use MacOS.KeepConsole to always exit if the program calls FrameWork._quit(). Overridable with a class variable keepconsole. 2000-10-12 21:25:37 +00:00
Jack Jansen 55a0bde290 Handle the ****/**** appleevent wildcard when called as a main program, so that it becomes a handy debugging tool (BuildApplet, copy aete resource, apply applescript to it). 2000-09-24 22:00:11 +00:00
Jack Jansen 486f138224 Added a workaround for shortcomings in the OSA support: there can be class/property conflicts and passing classes as arguments doesn't work. The package now seems to work. 2000-09-24 21:56:43 +00:00
Jack Jansen 4a751580ca mkcwproject now works, but for one thing: the import of the XML document as a project through AppleEvents. 2000-09-22 23:54:07 +00:00
Jack Jansen 9a8df7db6b Test files for mkcwproject 2000-09-22 23:28:40 +00:00
Jack Jansen 07642c3689 More bits and pieces of project generation. 2000-09-22 23:26:55 +00:00
Jack Jansen 4a5eb967b8 Keepconsole is now a 4-way option: never/errorexit/unseen output/always. Default is "unseen output". Upped the Popt version number. 2000-09-22 21:50:11 +00:00
Jack Jansen fdd2269fcc Allow lists of files/fsspecs as the source for copy() and move(). By
Bill Bedford, slightly edited by me.
2000-09-22 12:17:14 +00:00
Jack Jansen 0bb0a90b20 Various tweaks and bugfixes to GetArgv. It now appears good enough for Distutils. 2000-09-21 22:01:08 +00:00
Jack Jansen f86eda5d19 Added GetArgs dialog to EasyDialogs, a very nifty (if I may say so:-) way to create a unix-style sys.argv. 2000-09-19 22:42:38 +00:00
Jack Jansen 76167fecc1 This will eventually evolve into a package that creates CodeWarrior projects from templates (for distutils, and possibly the standard extensions too). For now it generates a correct xml file based on sources/output/expfile, but that is about all. 2000-09-15 22:44:08 +00:00
Jack Jansen a647f577f0 Read a QuickTime movie and return the frames. 2000-09-15 13:43:46 +00:00
Jack Jansen 9c940ca143 Moved to Unsupported. 2000-09-12 20:24:50 +00:00
Jack Jansen 8de9f81e8f This shouldn't have been here in the first place. 2000-09-10 20:45:10 +00:00
Jack Jansen 0c1836f13b Call GetDialogWindow to convert dialogs to windows. 2000-08-25 22:06:19 +00:00
Jack Jansen 6c091c8ff2 Regenerated to take advantage of support for multiple names for a single property. 2000-08-22 20:35:17 +00:00
Jack Jansen e743c6e27e Added a package for the other browser too. 2000-08-20 20:23:58 +00:00
Jack Jansen 742ca0385a Updated for new AppleScript structure and moved to Lib (it's far too useful to lurk in the source folder). 2000-08-20 20:06:51 +00:00
Jack Jansen 8bcd471606 Updated for the new applescript interface (which actually makes it so ridiculously simple that its main reason for existence is backward compatability). 2000-08-20 19:56:13 +00:00
Jack Jansen 2eda24475c Enums we cannot find are set to None, and enumsubst understands this (no substitution done). This is need for what I think are bugs in the Finder aete resources (some events use unknown enums). 2000-08-20 19:42:52 +00:00
Jack Jansen f58bbbe139 Finder suite. 2000-08-20 19:29:03 +00:00
Jack Jansen 4ef58af9a7 Regenerated with fixes to gensuitemodule. 2000-08-20 19:28:27 +00:00
Jack Jansen 5119a0bc2b Package with suites for talking to CodeWarrior. 2000-08-17 22:16:11 +00:00
Jack Jansen 47ff247e4b Package with suites for talking to netscape. 2000-08-17 22:15:41 +00:00
Jack Jansen ff792c2688 The package with standard suites. These are used separately and as base classes for other suite packages (StdSuite is slightly magical, in that it is the gensuitemodule default base package). 2000-08-17 22:14:57 +00:00
Jack Jansen ab48e905b5 Don't call BringToFront() on the dialog object, but call GetDialogWindow() to get a window object. 2000-07-24 14:07:15 +00:00
Jack Jansen 8d929aee49 All relevant toolbox modules have now been carbonized. 2000-06-21 22:07:06 +00:00
Jack Jansen d13c385462 Replaced OpenResFile calls with FSpOpenResFile calls (which are carbon-compatible). 2000-06-20 21:59:25 +00:00
Jack Jansen e79dc76f53 Made the core toolbox modules carbon-compatible using the new greylist feature of bgen: non-carbon methods are still included in non-carbon MacPython. The issue of backward compatibility of Python code is still open.
Macmodule and macosmodule have also been carbonified. Some functionality is still missing there.
2000-06-02 21:35:07 +00:00
Jack Jansen 317b2a6d59 Import this to replace open() by an extended version that uses
Internet Config to set creator/type based on the extension. Donated by
Oliver Steele.
2000-05-09 08:38:20 +00:00
Jack Jansen 0c6d037cc5 Removed string-exception preference, added tabcheck and NavService preference, upped version number. 2000-05-05 23:11:14 +00:00
Jack Jansen 1fdadcd42c Auto-install on import, if NavServices is available. Unless a "no navservices" flag is set Python automagically imports this module so code that uses macfs.xxxGetFile will get NavServices dialogs. 2000-05-05 23:10:58 +00:00
Jack Jansen 301f3f6baa Added accessor for kControlListBoxDoubleClickPart 2000-05-04 15:43:00 +00:00
Jack Jansen 316778860f Fix by Dan Green and Corran Webster to support LongDateTime
values. Untested by me.
2000-04-18 14:08:31 +00:00
Jack Jansen e31d3d66aa Return a handle in stead of a resource. 2000-04-07 09:08:37 +00:00
Just van Rossum f51872733c Added getaboutmenutext() method. (jvr) 2000-03-28 13:57:34 +00:00
Just van Rossum 0c3baaf19c my previous patch didn't give enough events to SIOUX, this one fixes that (jvr) 2000-03-27 17:13:32 +00:00
Just van Rossum 7ec7c8ad66 fixed several event handling buglets, added command Q support, added a new module doc string, some formatting nits. (jvr) 2000-03-27 16:22:53 +00:00
Jack Jansen 34d11f0670 Fixed multi-arg appends. 2000-03-07 23:40:13 +00:00
Jack Jansen 98b286c217 A module to parse/generate MediaDescription handles as used by QuickTime. Only
generic, video and audio implemented for now.
2000-03-02 16:11:36 +00:00
Jack Jansen 8574378ad4 In AskYesNoCancel() treat the "yes" and "no" buttons the same way as the cancel
button (i.e. an empty label hides the button).
2000-02-10 16:15:53 +00:00
Jack Jansen fca049d952 Made all textfields in message and question boxes minimal height and invisible, and use AutoSizeDialog() and ShowWindow() before doing interaction. 2000-01-18 13:36:02 +00:00
Jack Jansen 5c6634c807 - Actually _implemented_ SetFolder()
- Fixed StandardPutFile: prompt, default
- Check explicitly for userCanceledErr, pass other Nav.error exceptions through.
2000-01-13 16:26:35 +00:00
Jack Jansen d08833ff1d Two constants were missing. 2000-01-07 14:55:40 +00:00
Jack Jansen e9c69bc53e Support keys that have a Handle as parameter, by using the new GetControlDataHandle and SetControlDataHandle methods. 1999-12-19 00:06:52 +00:00
Jack Jansen 54b9ce1c4f StandardFile compatability routines. For the time being calling macfsn._install()
will install these in macfs (if Navigation is available).
1999-12-18 16:57:33 +00:00
Jack Jansen c15e43a2da Fixed menu glyph stuff.
Use MenuEvent in stead of MenuKey.
1999-12-15 15:45:23 +00:00
Just van Rossum 1a5eb04d47 Fixed buglet in Application.do_suspendresume(), it took the wrong flag to determine suspend/resume -- jvr 1999-12-15 14:55:16 +00:00
Jack Jansen 13681b73b5 If a menu shortcut is a tuple in stead of a char it is a tuple (modifierkeys, char [, glyph]). 1999-12-14 15:45:53 +00:00
Jack Jansen 1836dbe22d Regenerated now that bgen can handle a few more constructs in constant definitions. 1999-12-14 15:44:53 +00:00
Jack Jansen 60429e055e Fixed the password dialog to use a password control. 1999-12-13 16:07:01 +00:00
Jack Jansen a4deef82d5 C-style comments removed (again).
AE stuff got some extra definitions (don't know why these weren't checked in).
1999-12-13 16:05:47 +00:00
Jack Jansen 30f2080475 Methods {Get,Set}ControlData that know about data types passed for the various
4-char codes. The table which maps codes to datatypes is still pretty empty,
I'll fill it as I need entries (or maybe someone wants to spend a nice day filling it?).
1999-12-13 16:04:48 +00:00
Jack Jansen cc38688889 Updated Message, question, YNC and progress dialogs for Appearance. Password
remains to be done, and maybe we should convert everything to movablemodal too
and make things like question look nicer.
1999-12-12 22:57:51 +00:00
Jack Jansen a05ac607d7 Regenerated with CW Pro 5.2, which has MacOS 8.6 and Appearance 1.1 support. 1999-12-12 21:41:51 +00:00
Jack Jansen a6107f75c1 Regenerated, and manually massaged (sigh): there can now be comments after enum defs, and bgen doesn't understand this yet. 1999-12-09 22:51:01 +00:00
Jack Jansen 4d56ecf690 Minimal test of Dlg.SetControlData by Corran Webster: draw a default
ring around a button. Mainly here so I can transfer it home:-)
1999-12-09 15:36:36 +00:00
Jack Jansen b70699bcc5 Set the finder "is shared" bit, by request of Joe Strout. It seems this allows multiple simultaneous copies to be run from a server, and Applets shouldn't
write their datafork so it appears safe.
1999-12-03 23:38:05 +00:00
Jack Jansen 0c3e4b6ca1 Default schedparams set to (0,0): no event-intervention by Python mainloop. This
was always meant to be the default, and the new example-2 was pretty critical
of this.
1999-12-03 16:08:50 +00:00
Jack Jansen 58fa818c08 Changes to ProgressBar:
- Don't crash if max=0
- set() now has an optional max parameter, to set the maximum value.
1999-11-05 15:53:10 +00:00
Jack Jansen 231fffe1d4 AskString always set the dialog id to 257. Fixed. 1999-10-05 08:54:17 +00:00
Jack Jansen cab9476330 Drag manager constants. 1999-06-23 09:09:46 +00:00
Jack Jansen 1de2a92791 Initial minimal test program: print information on anything dropped onto Python
window.
1999-06-21 16:19:43 +00:00
Jack Jansen 0d3be0aa55 Class around PixMap objects that allows more python-like access. By Joe Strout. 1999-04-13 11:45:46 +00:00
Jack Jansen 81da9f146c Remove all owner resources from template, and if no owner resource contained in
applet-specific rsrc file we add a "Pyta" owner resource. Owner resources have both id=0 and name="Owner resource" (is this always true?).
1999-03-17 22:57:55 +00:00
Jack Jansen a4e6ae6667 Offscreen bitmap support, first stab. PixMaps are still treated as ordinary
handles, not fullblown python objects, and UpdateGWorld returns a new GWorld
object in stead of modifying the existing one.
1999-03-07 23:11:21 +00:00
Jack Jansen 57ed139c22 Added App module (appearance manager interface). 1999-03-04 23:00:11 +00:00
Jack Jansen cf2efc67d9 Uncommented AskYesNoCancel docstring (how did it get commented in the first place?) 1999-02-25 22:05:45 +00:00
Jack Jansen 208c15ab85 Added optional arguments to dialogs to allow setting of button titles. 1999-02-16 16:06:39 +00:00
Just van Rossum cdcc0f0c3c AskPassword(): added reference to the module doc string; added support for autoKey events. --jvr 1999-02-15 00:04:05 +00:00
Jack Jansen 3b8052685c (finally) unified the interpreter and the applet as Just suggested ages ago. The
resulting program is called PythonInterpreter.
1999-02-14 23:12:06 +00:00
Jack Jansen b92268aa3f Added AskPassword() with same interface as AskString. By Steve Majewski with some mods by me (SchedParams call, default value). Selects are still impossible, though, and the cursor doesn't blink. 1999-02-10 22:38:44 +00:00
Jack Jansen 49fc666033 Use typeFloat for all floating point values. The previously used
typeExtended was a Think-ism that must have stopped working years and
years ago without anyone noticing.
1999-02-10 09:51:35 +00:00
Just van Rossum 26a69db4c7 put the preferences file in a folder called "Python" inside the prefs folder, just like the IDE does -- jvr 1999-02-02 15:49:03 +00:00
Just van Rossum 874f87b546 set 'preload' attribute for __main__ PYC resource -- jvr 1999-01-30 22:31:26 +00:00
Just van Rossum 1cea8047d8 skip 'vers' resource when copying resources from templeate -- jvr 1999-01-30 21:20:10 +00:00
Jack Jansen f25813ac6c Re-committed as AppleSingle 1999-01-29 12:06:21 +00:00
Just van Rossum 5763e07ea3 cleaned up ugly hack related to activate events and suspend/resume -- jvr 1999-01-27 14:22:11 +00:00
Jack Jansen 90c3c164e0 In unpackevent, get the direct object (----) before asking for missed parameters.
The documentation is unclear on this, but the old implementation caused problems
with Default Folder.
1999-01-22 13:23:12 +00:00
Jack Jansen d61f92bab3 Select the whole default input field in AskString (Joe Strout) 1999-01-22 13:14:06 +00:00
Jack Jansen a0fcd25800 Don't qualify local symbols with aetools... 1999-01-21 13:34:26 +00:00
Jack Jansen d9f5a39ef3 Manually added definitions for normal, bold, etc. These are in MacTypes (of all
places) which isn't worth bgenning.
1999-01-21 13:31:30 +00:00
Jack Jansen b736a87703 Project files converted for CW Pro 4. And the daylight savings time switch seems to have "modified" the resource files (but nothing has changed there). 1998-11-01 22:11:33 +00:00
Jack Jansen 260400f3f5 Removed debug print 1998-10-21 13:41:03 +00:00
Jack Jansen 341d1fe18e For submenus remember the parent and parent index, so we can grey out our
entry if the menu is disabled. This does create a circular reference, so cleanup
becomes more important.
1998-10-15 15:29:16 +00:00
Jack Jansen 0e0d3e7c2b Set kAECanInteract and kAECanSwitchLayer flags for the finder interactions. 1998-10-15 14:02:54 +00:00
Jack Jansen deff89c8be Replaced fprintf(stderr,...) with PySys_WriteStderr(...) where appropriate. 1998-10-12 20:53:15 +00:00
Jack Jansen d5af7bd489 Truncate messages if they are longer than 255 characters. Note that this is
not really a good solution for default input strings...
1998-09-28 10:37:08 +00:00
Jack Jansen fb37f89b81 Replaced all remaining BinHex files with their binary counterparts. 1998-08-20 15:03:49 +00:00
Jack Jansen b93f52158b Support for freezing packages (Just). 1998-08-18 12:23:11 +00:00
Jack Jansen 813c997b76 Common code for BuildApplet, BuildApplication and fullbuild (Just) 1998-07-31 09:42:35 +00:00
Jack Jansen 87440e44d8 Extended replacement for scripts:cfmfile.py (Just) 1998-07-31 09:41:59 +00:00
Jack Jansen 871fad2641 Added has_key() method to IC object.
Removed a debug print.
1998-07-31 09:39:28 +00:00
Jack Jansen 5c44027d8a Added a delete() method to menu entries. Only the last entry of a menu
can be deleted, but that's good enough for things like a "Windows"
menu with the dynamic list of open windows at the end of the menu.
1998-07-13 13:41:02 +00:00
Jack Jansen a5a49818aa Convert \n to \r in strings that are displayed in the dialogs. 1998-07-01 15:47:44 +00:00
Jack Jansen 41e825a8f4 For ControlWindow there is a new method do_rawcontrolhit(), which gets
control before TrackControl is called. The default implementation
calls TrackControl and then do_controlhit().

For ScrolledWindow, do_rawcontrol passes a tracker function to
TrackControl if the mouse is in one of the arrows or grey areas, and
the tracker handles scrolling. For the thumb part nothing has changed.
1998-05-28 14:22:48 +00:00
Jack Jansen bb6193c553 Added a PopupMenu class. 1998-05-06 15:33:09 +00:00
Jack Jansen d38dc64a8d Regenerated with FOUR_CHAR_CODE defined 1998-04-27 15:07:43 +00:00
Jack Jansen 7b7a2c2e11 Added new folder types 1998-04-24 10:42:01 +00:00
Jack Jansen 0ec0e63928 Added FOUR_CHAR_CODE define 1998-04-24 10:41:38 +00:00
Jack Jansen 41dc72fa1f Regenerated with FOUR_CHAR_CODE defined 1998-04-23 13:23:12 +00:00
Jack Jansen 4e126636a2 Regenerated from new (3.1) universal headers 1998-04-21 15:21:52 +00:00
Jack Jansen 36659fef2a Re-generated with slightly more intelligent script 1998-04-21 15:21:21 +00:00
Jack Jansen b8fd1f18ab Tabnanny fixes 1998-04-15 14:35:16 +00:00
Jack Jansen 1301f2bc18 __file__ now sometimes refers to the .pyc file 1998-03-02 16:57:01 +00:00
Jack Jansen bfb77a07cb Oops, this wasn't checked in yet: part of the AE structure for the new
universal headers.
1998-02-25 15:44:38 +00:00
Jack Jansen 0e4033a680 Module to use Mac serial port as a communication link 1998-02-25 15:43:57 +00:00
Jack Jansen 0aa9782d17 Helper routines to create standalone Python applications. 1998-02-25 15:42:48 +00:00
Jack Jansen f7d8f45414 Hack to get at string buffer address changed 1998-02-25 15:42:03 +00:00
Jack Jansen 5e58bcdb7a Regenerated from Universal Headers 3.0.1 (which are changed
substantially from previous releases)
1998-02-20 15:54:44 +00:00
Jack Jansen 7c2fddf423 Updated to Waste 1.3 1998-02-20 15:53:58 +00:00
Jack Jansen 7b56aad2e1 Break circular reference on menus upon cleanup 1998-02-20 15:51:39 +00:00
Jack Jansen 20989e834d Mods by Bill Bedford
- Use internal version of finder class so we don't drag in finder
  tools
- error -1704 also ignored during arg unpack
- Use Scriptable Text Editor for example
1998-01-16 14:40:10 +00:00
Jack Jansen 5b0533d9ca Addition by Bill Bedford: Ordinal and NOrdinal classes so we can
implement "every", etc.
1998-01-16 14:38:10 +00:00
Jack Jansen 6b02ac2321 I give in. Now Tk is also using resources just above 128, so Python
now uses only 228-256, leaving 128-228 free for others. This mod
affects prefs files, libraries and almost everything else, so I've
upped my local Python to 1.5b4 to remain sane.
1998-01-06 16:48:49 +00:00
Jack Jansen e86d2870c4 Loading defaults for gusi/sys.path didn't work for applets. Fixed. 1998-01-06 12:11:48 +00:00
Jack Jansen a23a4621a0 Balloon help definitions 1998-01-06 12:09:53 +00:00
Jack Jansen 0e680b7608 Moved toolbox to lib-toolbox, Sjoerd-style. 1997-12-18 17:50:29 +00:00
Jack Jansen 3802039cff Moved scripting to lib-scripting (did it the Sjoerd-way this time) 1997-12-18 17:47:12 +00:00
Jack Jansen 6954e34324 Added old-exceptions and no-site-python preferences and upped version
to 4.
1997-09-09 13:51:17 +00:00
Jack Jansen e632380b55 Dunno, rebinhexed? 1997-09-08 13:26:55 +00:00
Jack Jansen 8a99a8aa89 Preferences is a general module to get (and set) preferences in
resource files with various inheritence rules, parsers, etc.

pythonprefs uses this to create a single uniform interface to all
relevant python preferences.
1997-09-08 13:26:36 +00:00
Jack Jansen 21b5d605d8 Moved suites to their own folder 1997-08-27 13:49:18 +00:00
Jack Jansen f2e917e8e5 Regenerated 1997-08-15 14:38:59 +00:00
Jack Jansen 48f662de92 mkalias() now has an optional third parameter to create relative
aliases (Just)
1997-08-08 15:00:59 +00:00
Jack Jansen 756a69fa0d - Added classes to support class/property generation by gensuitemodule
- Fixed Property class: selector is a 'type', not an 'enum'
1997-08-08 15:00:03 +00:00
Jack Jansen d080eddf8e Added dopendingevents call
Added asyncevents call to enable asynchronous event handling
1997-06-20 16:24:24 +00:00
Jack Jansen 3f5aef7fef Allow specifying own resources for all dialogs
Allow changing labels on yesnocancel dialog
1997-06-20 16:23:37 +00:00
Jack Jansen 1b3904b998 Module to buffer stdout/stderr until stdin is read. Useful for
windowing programs, together with option to keep console window closed
until needed.
1997-06-20 16:22:07 +00:00
Jack Jansen 0b34dd51b5 Regenerated 1997-06-20 16:20:03 +00:00
Jack Jansen 3368cb7763 Replaced MacOS.EnableAppSwitch with MacOS.SchedParams 1997-06-12 10:51:18 +00:00
Jack Jansen d3b06a871f Added optional preload arg to some routines (which creates reloaded
resources when set)
1997-06-12 10:50:47 +00:00
Jack Jansen 7fb76e0f8a Replaced MacOS.EnableAppswitch by MacOS.SchedParams 1997-06-12 10:49:56 +00:00
Jack Jansen 8766dfd9e8 Regenreated for MSL 1997-05-15 11:18:32 +00:00
Jack Jansen 48c5527c78 Add a few more BringToFont calls 1997-05-13 15:41:07 +00:00
Jack Jansen 141f9a0f8a Regenrated from CW11 IDE 1997-05-13 11:27:19 +00:00
Jack Jansen 1d63d8c829 Fixes to progress bar by SDM, modified by Jack:
- Window has a titlebar, and title() changes it
- The label is changed with label()
- The window is now movable-modal
- Cancel is now called Stop, and works.
1997-05-12 15:44:14 +00:00
Jack Jansen cb2554effa Still not a real test, but at least it runs again 1997-04-03 14:45:28 +00:00
Jack Jansen 1801aad5dc Use MacOS.string_id_to_buffer for id() to buffer address hack 1997-04-03 14:44:41 +00:00
Jack Jansen 6a528149db Re-generated from new (CW11) universal headers 1997-02-24 13:52:56 +00:00
Jack Jansen 8dc797d1f8 Return preferences of unknown type as opaque data 1997-01-10 15:25:47 +00:00